From a33a95e1421a7f4b6169248d492d19ef68324b97 Mon Sep 17 00:00:00 2001 From: ppolariss <2673986789@qq.com> Date: Thu, 10 Oct 2024 20:39:51 +0800 Subject: [PATCH] fix: return err in BanUserForever --- apis/penalty/api.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apis/penalty/api.go b/apis/penalty/api.go index 6616ab1..9e6da92 100644 --- a/apis/penalty/api.go +++ b/apis/penalty/api.go @@ -230,6 +230,9 @@ func BanUserForever(c *fiber.Ctx) error { return nil }) + if err != nil { + return err + } // construct message for user message := Notification{