chat gpt pls dp me help, yess

This commit is contained in:
pigwin
2025-01-04 20:57:01 +00:00
parent a50ef5b899
commit 75e007603f

View File

@@ -169,7 +169,12 @@ func DBData(data *data.Data) {
otherJson = string(jsonString) otherJson = string(jsonString)
values = append(values, otherJson) values = append(values, otherJson)
jobs <- values // Insert or update the record and get the id
id, action, err := database.InsertOrUpdateEstimatedVehicleJourney(db, values)
if err != nil {
fmt.Printf("Error inserting/updating estimated vehicle journey: %v\n", err)
continue
}
// Add the missing code here // Add the missing code here
for _, estimatedCall := range journey.EstimatedCalls { for _, estimatedCall := range journey.EstimatedCalls {