diff options
Diffstat (limited to 'models/admin/notice.go')
-rw-r--r-- | models/admin/notice.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/admin/notice.go b/models/admin/notice.go index 77277e4b2d..4d385cf951 100644 --- a/models/admin/notice.go +++ b/models/admin/notice.go @@ -142,5 +142,5 @@ func DeleteOldSystemNotices(olderThan time.Duration) (err error) { } _, err = db.GetEngine(db.DefaultContext).Where("created_unix < ?", time.Now().Add(-olderThan).Unix()).Delete(&Notice{}) - return + return err } |