fix 管理员失效BUG

This commit is contained in:
ZJY 2021-09-09 16:26:15 +08:00
parent 1ccc0b5bf5
commit 7bc76ba785

View File

@ -316,9 +316,7 @@ var codeSignals = []CodeSignal{
Admin: true,
Handle: func(sender *Sender) interface{} {
ctt := sender.JoinContens()
db.Delete(&UserAdmin{
Content: ctt,
}).Where(ctt)
RemoveUserAdmin(ctt)
return "已取消管理员"
},
},