chat gpt pls dp me help, yess
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user