mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-12-29 01:06:36 +08:00
缩短各项统计清理时间
This commit is contained in:
@@ -61,7 +61,7 @@ func (this *NodeValueDAO) Clean(tx *dbs.Tx) error {
|
||||
expiredDays := 2
|
||||
day := timeutil.Format("Ymd", time.Now().AddDate(0, 0, -expiredDays))
|
||||
_, err := this.Query(tx).
|
||||
Where("day<:day").
|
||||
Where("day<=:day").
|
||||
Param("day", day).
|
||||
Delete()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user