diff options
Diffstat (limited to 'routers/web/admin/notice.go')
-rw-r--r-- | routers/web/admin/notice.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/admin/notice.go b/routers/web/admin/notice.go index 147e03ba03..b50549b804 100644 --- a/routers/web/admin/notice.go +++ b/routers/web/admin/notice.go @@ -59,10 +59,10 @@ func DeleteNotices(ctx *context.Context) { if err := admin_model.DeleteNoticesByIDs(ids); err != nil { ctx.Flash.Error("DeleteNoticesByIDs: " + err.Error()) - ctx.Status(500) + ctx.Status(http.StatusInternalServerError) } else { ctx.Flash.Success(ctx.Tr("admin.notices.delete_success")) - ctx.Status(200) + ctx.Status(http.StatusOK) } } |