mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
fix bug
This commit is contained in:
parent
54589814f8
commit
439110f95b
@ -143,7 +143,7 @@ func joinGroups(operationID, userID, userName string, groupIDList []string) {
|
|||||||
GroupID: groupID,
|
GroupID: groupID,
|
||||||
Reason: "register auto join",
|
Reason: "register auto join",
|
||||||
InvitedUserIDList: []string{userID},
|
InvitedUserIDList: []string{userID},
|
||||||
OpUserID: userID,
|
OpUserID: config.Config.Manager.AppManagerUid[0],
|
||||||
}
|
}
|
||||||
resp, err := client.InviteUserToGroup(context.Background(), req)
|
resp, err := client.InviteUserToGroup(context.Background(), req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -261,7 +261,7 @@ func GetDepartmentParent(departmentID string, dbConn *gorm.DB, parentIDList *[]s
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if department.ParentID != "" {
|
if department.DepartmentID != "" {
|
||||||
*parentIDList = append(*parentIDList, department.ParentID)
|
*parentIDList = append(*parentIDList, department.ParentID)
|
||||||
err = GetDepartmentParent(departmentID, dbConn, parentIDList)
|
err = GetDepartmentParent(departmentID, dbConn, parentIDList)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user