We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eca3880 commit 90c438fCopy full SHA for 90c438f
backend/pkd/gasstation/gsrepo.go
@@ -346,7 +346,7 @@ func CalcCountyTimeSlots() {
346
postCodeTimeSliceBuckets := createCodeTimeSliceBuckets(postCodePostCodeLocationMap, postCodeGasStationsMap)
347
//log.Printf("postCodeTimeSliceBuckets: %v\n", len(postCodeGasStationsMap))
348
database.DB.Transaction(func(tx *gorm.DB) error {
349
- tx.Where("1=1").Delete(&pcmodel.CountyTimeSlot{})
+ tx.Unscoped().Where("1=1").Delete(&pcmodel.CountyTimeSlot{})
350
return nil
351
})
352
//log.Printf("idCountyDataMap: %v\n", len(idCountyDataMap))
0 commit comments