@servicelabsco/slabs-access-manager 0.0.32 → 0.0.33
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.
|
@@ -2,7 +2,6 @@ import { DatabaseEventDto, SqlService } from '@servicelabsco/nestjs-utility-serv
|
|
|
2
2
|
import { GroupRoleEntity } from '../entities';
|
|
3
3
|
export declare class ProcessGroupRoleUpdate {
|
|
4
4
|
private readonly sqlService;
|
|
5
|
-
private logger;
|
|
6
5
|
constructor(sqlService: SqlService);
|
|
7
6
|
process(evt: DatabaseEventDto<GroupRoleEntity>): Promise<any>;
|
|
8
7
|
private getRecords;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ProcessGroupRoleUpdate = void 0;
|
|
4
|
-
const common_1 = require("@nestjs/common");
|
|
5
4
|
const entities_1 = require("../entities");
|
|
6
5
|
const SOURCEHASH = require("../../config/source.hash");
|
|
7
6
|
class ProcessGroupRoleUpdate {
|
|
8
7
|
constructor(sqlService) {
|
|
9
8
|
this.sqlService = sqlService;
|
|
10
|
-
this.logger = new common_1.Logger('EventQueue');
|
|
11
9
|
}
|
|
12
10
|
async process(evt) {
|
|
13
11
|
if (evt.entity.deleted_at)
|
|
@@ -16,7 +14,7 @@ class ProcessGroupRoleUpdate {
|
|
|
16
14
|
}
|
|
17
15
|
async getRecords(entity) {
|
|
18
16
|
const sql = `select b.* from bz_business_user_roles a, bz_business_users b where a.deleted_at is null and b.deleted_at is null and a.business_user_id = b.id and a.role_group_id = ${entity.group_id} and b.user_id is not null and b.business_id is not null`;
|
|
19
|
-
|
|
17
|
+
console.log(`sql : ${sql}`);
|
|
20
18
|
return this.sqlService.sql(sql);
|
|
21
19
|
}
|
|
22
20
|
async handleInsertion(evt) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process.group.role.update.js","sourceRoot":"","sources":["../../../src/access/libraries/process.group.role.update.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"process.group.role.update.js","sourceRoot":"","sources":["../../../src/access/libraries/process.group.role.update.ts"],"names":[],"mappings":";;;AAEA,0CAA8D;AAC9D,uDAAwD;AAExD,MAAa,sBAAsB;IAC/B,YAA6B,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAI,CAAC;IAExD,KAAK,CAAC,OAAO,CAAC,GAAsC;QAChD,IAAI,GAAG,CAAC,MAAM,CAAC,UAAU;YAAE,OAAO,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;QAC3D,OAAO,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;IACrC,CAAC;IAEO,KAAK,CAAC,UAAU,CAAC,MAAuB;QAC5C,MAAM,GAAG,GAAG,yKAAyK,MAAM,CAAC,QAAQ,0DAA0D,CAAC;QAE/P,OAAO,CAAC,GAAG,CAAC,SAAS,GAAG,EAAE,CAAC,CAAC;QAE5B,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACpC,CAAC;IAEO,KAAK,CAAC,eAAe,CAAC,GAAsC;QAChE,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAElD,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;YAC1B,MAAM,yBAAc,CAAC,aAAa,CAAC;gBAC/B,WAAW,EAAE,UAAU,CAAC,SAAS;gBACjC,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE;gBACxB,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,OAAO;gBAC3B,OAAO,EAAE,MAAM,CAAC,OAAO;gBACvB,WAAW,EAAE,MAAM,CAAC,WAAW;aAClC,CAAC,CAAC;SACN;QAED,OAAO,OAAO,CAAC,MAAM,CAAC;IAC1B,CAAC;IAEO,KAAK,CAAC,cAAc,CAAC,GAAsC;QAC/D,MAA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