@ -143,7 +143,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
return err
if department.ParentID != "" {
if department.DepartmentID != "" {
*parentIDList = append(*parentIDList, department.ParentID)
err = GetDepartmentParent(departmentID, dbConn, parentIDList)