rez_core 5.0.24 → 5.0.26
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/meta/service/entity-dynamic.service.d.ts +0 -1
- package/dist/module/meta/service/entity-dynamic.service.js +1 -9
- package/dist/module/meta/service/entity-dynamic.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/meta/service/entity-dynamic.service.ts +1 -10
package/package.json
CHANGED
|
@@ -750,7 +750,7 @@ export class EntityDynamicService {
|
|
|
750
750
|
// 2. Get current max sequence number from that table
|
|
751
751
|
const seqResult = await this.dataSource.query(
|
|
752
752
|
`SELECT MAX(id) AS max_seq_no
|
|
753
|
-
FROM
|
|
753
|
+
FROM ${tableName}
|
|
754
754
|
WHERE entity_type = $1`,
|
|
755
755
|
[entityType],
|
|
756
756
|
);
|
|
@@ -806,13 +806,4 @@ export class EntityDynamicService {
|
|
|
806
806
|
|
|
807
807
|
return resolvedData;
|
|
808
808
|
}
|
|
809
|
-
|
|
810
|
-
async queryWithSchema(sql: string, params: any[] = []) {
|
|
811
|
-
await this.dataSource.query('BEGIN');
|
|
812
|
-
const schema = this.configService.get<string>('DB_SCHEMA');
|
|
813
|
-
await this.dataSource.query(`SET LOCAL search_path TO ${schema}`);
|
|
814
|
-
const result = await this.dataSource.query(sql, params);
|
|
815
|
-
await this.dataSource.query('COMMIT');
|
|
816
|
-
return result;
|
|
817
|
-
}
|
|
818
809
|
}
|