jobs now include direct link

This commit is contained in:
Bel LaPointe
2022-01-14 00:22:34 -05:00
parent 48da446e83
commit e2cd24a39f
5 changed files with 15 additions and 9 deletions

View File

@@ -39,7 +39,8 @@ func (ntgJob ntgVisionJob) Job() Job {
pickup, _ := time.ParseInLocation("01/02/06", ntgJob.PickupDate, time.Local)
dropoff, _ := time.ParseInLocation("01/02/06", ntgJob.DropoffDate, time.Local)
return Job{
ID: fmt.Sprintf("ntg-%d", ntgJob.ID),
ID: fmt.Sprintf("ntg-%d", ntgJob.ID),
URI: fmt.Sprintf(config.Get().Brokers.NTG.LoadPageURIFormat, ntgJob.ID),
Pickup: JobLocation{
Date: pickup,
City: ntgJob.PickupCity,