fix: add user id when admin update answer status

This commit is contained in:
LinkinStar 2022-11-23 17:58:03 +08:00
parent 45bd739f51
commit 60d6e18cd4
1 changed files with 3 additions and 0 deletions

View File

@ -241,6 +241,9 @@ func (ac *AnswerController) AdminSetAnswerStatus(ctx *gin.Context) {
if handler.BindAndCheck(ctx, req) {
return
}
req.UserID = middleware.GetLoginUserIDFromContext(ctx)
err := ac.answerService.AdminSetAnswerStatus(ctx, req)
handler.HandleResponse(ctx, err, gin.H{})
}