mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
organization
This commit is contained in:
parent
164a15cfd0
commit
5cfffc61a4
@ -111,7 +111,7 @@ func GetUserInDepartment(userID string) (error, []db.DepartmentMember) {
|
||||
return err, nil
|
||||
}
|
||||
var departmentMemberList []db.DepartmentMember
|
||||
err = dbConn.Table("department_members").Where("user_id=?", userID).Take(&departmentMemberList).Error
|
||||
err = dbConn.Table("department_members").Where("user_id=?", userID).Find(&departmentMemberList).Error
|
||||
return err, departmentMemberList
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user