rez_core 5.0.162 → 5.0.164

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez_core",
3
- "version": "5.0.162",
3
+ "version": "5.0.164",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -551,7 +551,7 @@ export class FilterService {
551
551
  const countQb = this.entityManager
552
552
  .createQueryBuilder()
553
553
  .select('COUNT(*)', 'count')
554
- .from(tableName, 'e');
554
+ .from(`${this.schema}.${tableName}`, 'e');
555
555
  dataWhere.forEach((clause) =>
556
556
  countQb.andWhere(clause.query, clause.params),
557
557
  );
@@ -27,7 +27,4 @@ export class ListMasterData extends BaseEntity {
27
27
 
28
28
  @Column({ nullable: true })
29
29
  custom_source_id: number;
30
-
31
- @Column({ nullable: true, default: '' })
32
- description: string;
33
30
  }
@@ -595,19 +595,19 @@ export class EntityDynamicService {
595
595
 
596
596
  const entityRepo = this.reflectionHelper.getRepoService(entityMaster?.entity_data_class);
597
597
 
598
- const columns = validAttributes.map(attr => `${attr.attribute_key}`);
599
-
600
- const result = await entityRepo.find({
601
- where: {
602
- id: id
603
- },
604
- select: columns
605
- });
606
- // const selectQuery = `SELECT ${columns}
607
- // FROM ${tableName} t
608
- // WHERE id = $1`;
598
+ const columns = validAttributes.map(attr => `t.${attr.attribute_key}`);
599
+
600
+ // const result = await entityRepo.find({
601
+ // where: {
602
+ // id: id
603
+ // },
604
+ // select: columns
605
+ // });
606
+ const selectQuery = `SELECT ${columns}
607
+ FROM ${this.schema}.${entityMaster.db_table_name} t
608
+ WHERE id = $1`;
609
609
 
610
- // const result = await this.entityManager.query(selectQuery, [id]);
610
+ const result = await this.entityManager.query(selectQuery, [id]);
611
611
  if (!result.length) return null;
612
612
 
613
613
  const row = result[0];