mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-08 03:00:26 +08:00
所有数据库相关的操作支持事务
This commit is contained in:
@@ -36,5 +36,5 @@ func (this *NodeLogCleanerTask) Start() {
|
||||
|
||||
func (this *NodeLogCleanerTask) loop() error {
|
||||
// TODO 30天这个数值改成可以设置
|
||||
return models.SharedNodeLogDAO.DeleteExpiredLogs(30)
|
||||
return models.SharedNodeLogDAO.DeleteExpiredLogs(nil, 30)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user