whoosp backwards if body

Bel LaPointe 2022-01-27 18:41:58 -07:00
parent e916b5abfc
commit 3adcee2fbe
2 changed files with 13 additions and 12 deletions

View File

@ -1,7 +1,7 @@
{ {
"Log": { "Log": {
"Path": "/tmp/truckstop.log", "Path": "/tmp/truckstop.log",
"Level": "debug", "Level": "DEB",
"SOSMatrix": { "SOSMatrix": {
"ReceiveEnabled": true, "ReceiveEnabled": true,
"Mock": false, "Mock": false,
@ -50,6 +50,7 @@
], ],
"Zips": [ "Zips": [
"27006", "27006",
"73044",
"84058" "84058"
], ],
"IDs": { "IDs": {
@ -76,21 +77,21 @@
"Once": false, "Once": false,
"Brokers": { "Brokers": {
"UseZips": true, "UseZips": true,
"RadiusMiles": 100, "RadiusMiles": 100,
"FastExact": {
"Enabled": true,
"Mock": false,
"Username": "birdman",
"Password": "166647"
},
"NTG": { "NTG": {
"Enabled": false, "Enabled": true,
"JobInfo": true, "JobInfo": true,
"Mock": false, "Mock": false,
"LoadPageURIFormat": "https://ntgvision.com/LoadDetails?loadId=%d", "LoadPageURIFormat": "https://ntgvision.com/LoadDetails?loadId=%d",
"LoadPageAPIURIFormat": "https://ntgvision.com/api/v1/load/LoadDetails?loadId==%d", "LoadPageAPIURIFormat": "https://ntgvision.com/api/v1/load/LoadDetails?loadId==%d",
"Username": "noeasyrunstrucking@gmail.com", "Username": "noeasyrunstrucking@gmail.com",
"Password": "thumper12345" "Password": "thumper12345"
},
"FastExact": {
"Enabled": true,
"Mock": false,
"Username": "birdman",
"Password": "166647"
} }
} }
} }

View File

@ -386,9 +386,9 @@ func once() error {
func getJobs() ([]broker.Job, error) { func getJobs() ([]broker.Job, error) {
if config.Get().Brokers.UseZips { if config.Get().Brokers.UseZips {
return getJobsStates() return getJobsZips()
} }
return getJobsZips() return getJobsStates()
} }
func getJobsZips() ([]broker.Job, error) { func getJobsZips() ([]broker.Job, error) {