Fix error in wrapActionResponse()

This commit is contained in:
Gucheng Wang
2022-08-09 23:34:07 +08:00
parent 79119760f2
commit 340fbe135d

View File

@ -138,9 +138,9 @@ func (c *ApiController) SetSessionData(s *SessionData) {
func wrapActionResponse(affected bool) *Response { func wrapActionResponse(affected bool) *Response {
if affected { if affected {
return &Response{Status: "ok", Msg: "", Data: "Affected"} return &Response{Status: "ok", Msg: ""}
} else { } else {
return &Response{Status: "ok", Msg: "", Data: "Unaffected"} return &Response{Status: "error", Msg: "this operation has no effect"}
} }
} }