rez_core 2.0.21 → 2.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module/enterprise/enterprise.module.js +3 -6
- package/dist/module/enterprise/enterprise.module.js.map +1 -1
- package/dist/module/enterprise/entity/organization.entity.d.ts +1 -0
- package/dist/module/enterprise/entity/organization.entity.js +4 -0
- package/dist/module/enterprise/entity/organization.entity.js.map +1 -1
- package/dist/module/user/service/user.service.d.ts +1 -1
- package/dist/module/user/service/user.service.js +1 -4
- package/dist/module/user/service/user.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/enterprise/enterprise.module.ts +3 -6
- package/src/module/enterprise/entity/organization.entity.ts +3 -0
- package/src/module/user/service/user.service.ts +4 -5
package/package.json
CHANGED
|
@@ -8,12 +8,9 @@ import { OrganizationAppMappingService } from './service/organization-app-mappin
|
|
|
8
8
|
import { OrganizationAppMapping } from './entity/organization-app-mapping.entity';
|
|
9
9
|
|
|
10
10
|
@Module({
|
|
11
|
-
imports: [
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
],
|
|
15
|
-
controllers: [OrganizationController, OrganizationAppMappingService],
|
|
16
|
-
providers: [OrganizationService],
|
|
11
|
+
imports: [TypeOrmModule.forFeature([OrganizationData , OrganizationAppMapping]), UserModule],
|
|
12
|
+
controllers: [OrganizationController],
|
|
13
|
+
providers: [OrganizationService, OrganizationAppMappingService],
|
|
17
14
|
exports: [OrganizationService],
|
|
18
15
|
})
|
|
19
16
|
export class EnterpriseModule {}
|
|
@@ -40,12 +40,11 @@ export class UserService extends EntityServiceImpl {
|
|
|
40
40
|
entityData: BaseEntity,
|
|
41
41
|
loggedInUser: UserData | null,
|
|
42
42
|
manager?: EntityManager,
|
|
43
|
-
appcode?: string,
|
|
44
43
|
): Promise<BaseEntity> {
|
|
45
44
|
let userData = entityData as CreateUserDto;
|
|
46
|
-
if (appcode) {
|
|
47
|
-
|
|
48
|
-
}
|
|
45
|
+
// if (appcode) {
|
|
46
|
+
// userData.appcode = appcode;
|
|
47
|
+
// }
|
|
49
48
|
let existingUser = await this.userRepository.findByEmailId(
|
|
50
49
|
userData.email_id,
|
|
51
50
|
loggedInUser?.organization_id,
|
|
@@ -94,7 +93,7 @@ export class UserService extends EntityServiceImpl {
|
|
|
94
93
|
savedData.id,
|
|
95
94
|
Number(roles[role]),
|
|
96
95
|
);
|
|
97
|
-
|
|
96
|
+
|
|
98
97
|
await this.userRoleMappingService.assignUserRole(userRoleMapping);
|
|
99
98
|
}
|
|
100
99
|
}
|