mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-26 19:46:57 +08:00
fix code
This commit is contained in:
parent
3be284c129
commit
da8755fcb7
@ -212,7 +212,7 @@ func RemoveUserIPLimitLogin(c *gin.Context) {
|
||||
if len(ips) == 0 {
|
||||
err := imdb.UpdateUserInfoByMap(db.User{
|
||||
UserID: req.UserID,
|
||||
}, map[string]interface{}{"limit_login": 0})
|
||||
}, map[string]interface{}{"login_limit": 0})
|
||||
if err != nil {
|
||||
log.NewError(req.OperationID, utils.GetSelfFuncName(), err.Error(), req.UserID)
|
||||
c.JSON(http.StatusInternalServerError, gin.H{"errCode": constant.ErrDB, "errMsg": "UpdateUserInfo error!"})
|
||||
|
Loading…
x
Reference in New Issue
Block a user