pull/236/head
wangchuxiao 3 years ago
parent dff7a28094
commit d9710ac244

@ -147,7 +147,7 @@ func joinGroups(operationID, userID, userName string, groupIDList []string) {
GroupID: groupID,
Reason: "register auto join",
InvitedUserIDList: []string{userID},
OpUserID: userID,
OpUserID: config.Config.Manager.AppManagerUid[0],
}
resp, err := client.InviteUserToGroup(context.Background(), req)
if err != nil {

@ -261,7 +261,7 @@ func GetDepartmentParent(departmentID string, dbConn *gorm.DB, parentIDList *[]s
if err != nil {
return err
}
if department.ParentID != "" {
if department.DepartmentID != "" {
*parentIDList = append(*parentIDList, department.ParentID)
err = GetDepartmentParent(departmentID, dbConn, parentIDList)
if err != nil {

Loading…
Cancel
Save