aboutsummaryrefslogtreecommitdiffstats
path: root/models/admin.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/admin.go')
-rw-r--r--models/admin.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/models/admin.go b/models/admin.go
index 605e21babc..14a0e8d009 100644
--- a/models/admin.go
+++ b/models/admin.go
@@ -14,7 +14,6 @@ import (
"github.com/Unknwon/com"
"github.com/go-xorm/xorm"
- "code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
)
@@ -131,7 +130,7 @@ func DeleteNoticesByIDs(ids []int64) error {
return nil
}
_, err := x.
- Where("id IN (" + strings.Join(base.Int64sToStrings(ids), ",") + ")").
+ In("id", ids).
Delete(new(Notice))
return err
}