Skip to content

Commit 90c438f

Browse files
committed
fix: clean up
1 parent eca3880 commit 90c438f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/pkd/gasstation/gsrepo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ func CalcCountyTimeSlots() {
346346
postCodeTimeSliceBuckets := createCodeTimeSliceBuckets(postCodePostCodeLocationMap, postCodeGasStationsMap)
347347
//log.Printf("postCodeTimeSliceBuckets: %v\n", len(postCodeGasStationsMap))
348348
database.DB.Transaction(func(tx *gorm.DB) error {
349-
tx.Where("1=1").Delete(&pcmodel.CountyTimeSlot{})
349+
tx.Unscoped().Where("1=1").Delete(&pcmodel.CountyTimeSlot{})
350350
return nil
351351
})
352352
//log.Printf("idCountyDataMap: %v\n", len(idCountyDataMap))

0 commit comments

Comments
 (0)