mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-28 16:00:24 +01:00
use nonconcurrent db when deleting log requests
This commit is contained in:
1 parent
684f91f7e5
commit
0547202382
1 file changed
+1
-1
+1
-1
@@ -59,7 +59,7 @@ func (dao *Dao) DeleteOldRequests(createdBefore time.Time) error {
|
||||
formattedDate := createdBefore.UTC().Format(types.DefaultDateLayout)
|
||||
expr := dbx.NewExp("[[created]] <= {:date}", dbx.Params{"date": formattedDate})
|
||||
|
||||
_, err := dao.DB().Delete(tableName, expr).Execute()
|
||||
_, err := dao.NonconcurrentDB().Delete(tableName, expr).Execute()
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user