id print change

This commit is contained in:
Peder Vatn Austad
2024-12-26 15:14:48 +01:00
parent e8b4f4a42e
commit fd70e45ea1
4 changed files with 9 additions and 8 deletions

View File

@@ -136,9 +136,11 @@ func DBData(data *data.Data) {
values = append(values, otherJson)
// Insert or update the record
err = database.InsertOrUpdateEstimatedVehicleJourney(db, values)
id, action, err := database.InsertOrUpdateEstimatedVehicleJourney(db, values)
if err != nil {
fmt.Printf("Error inserting/updating estimated vehicle journey: %v\n", err)
} else {
fmt.Printf("Action: %s, ID: %d\n", action, id)
}
}
}