mirror of https://gitee.com/answerdev/answer.git
fix: add user id when admin update answer status
This commit is contained in:
parent
45bd739f51
commit
60d6e18cd4
|
@ -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{})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue