mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-10 03:56:00 +08:00
Refactor code
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user