rez_core 5.0.4 → 5.0.5
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
|
@@ -614,9 +614,9 @@ export class EntityDynamicService {
|
|
|
614
614
|
);
|
|
615
615
|
|
|
616
616
|
const columns = validAttributes
|
|
617
|
-
.map((attr) =>
|
|
617
|
+
.map((attr) => `${attr.attribute_key}`)
|
|
618
618
|
.join(', ');
|
|
619
|
-
const selectQuery = `SELECT ${columns} FROM
|
|
619
|
+
const selectQuery = `SELECT ${columns} FROM ${tableName} WHERE id = $1`;
|
|
620
620
|
|
|
621
621
|
const result = await this.dataSource.query(selectQuery, [id]);
|
|
622
622
|
if (!result.length) return null;
|