Merge branch 'del' of github.com:OpenIMSDK/Open-IM-Server into del

This commit is contained in:
wangchuxiao
2022-08-15 18:59:52 +08:00
2 changed files with 7 additions and 3 deletions
@@ -59,7 +59,7 @@ func DeleteOneFromIpLimits(ip string) error {
func GetIpLimitsLoginByUserID(userID string) ([]db.UserIpLimit, error) {
var ips []db.UserIpLimit
err := db.DB.MysqlDB.DefaultGormDB().Model(&db.UserIpLimit{}).Where("user_id=?", userID).Take(&ips).Error
err := db.DB.MysqlDB.DefaultGormDB().Model(&db.UserIpLimit{}).Where("user_id=?", userID).Find(&ips).Error
return ips, err
}