Add userId param to GetAllObjects() API

This commit is contained in:
Yang Luo
2024-01-13 18:03:40 +08:00
parent 79b393afee
commit 177f2f2f11
3 changed files with 20 additions and 11 deletions

View File

@ -973,7 +973,7 @@ func (c *ApiController) GetWebhookEventType() {
// @router /api/get-captcha-status [get]
func (c *ApiController) GetCaptchaStatus() {
organization := c.Input().Get("organization")
userId := c.Input().Get("user_id")
userId := c.Input().Get("userId")
user, err := object.GetUserByFields(organization, userId)
if err != nil {
c.ResponseError(err.Error())