mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
Refactor code
This commit is contained in:
parent
f59208b9cf
commit
c0172b0a49
@ -26,6 +26,8 @@ func UpdateGroupRequest(groupRequest GroupRequest) error {
|
||||
//RowsAffected
|
||||
if dbConn.Table("group_request").Where("group_id=? and user_id=?", groupRequest.GroupID, groupRequest.UserID).Update(&groupRequest).RowsAffected == 0 {
|
||||
return InsertIntoGroupRequest(groupRequest)
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user