Refactor code

pull/131/head
wenxu12345 3 years ago
parent f93090596a
commit d7dbe986f1

@ -52,6 +52,6 @@ func SetGroupInfo(groupInfo Group) error {
if err != nil {
return err
}
err = dbConn.Table("friend_request").Where("group_id=?", groupInfo.GroupID).Update(&groupInfo).Error
err = dbConn.Table("group").Where("group_id=?", groupInfo.GroupID).Update(&groupInfo).Error
return err
}

Loading…
Cancel
Save