rez_core 5.0.91 → 5.0.93

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.91",
3
+ "version": "5.0.93",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -400,7 +400,7 @@ export class EntityDynamicService {
400
400
  source_entity_id: id,
401
401
  source_entity_type: entityType,
402
402
  target_entity_id: targetEntityId,
403
- targetEntityType: targetEntityType,
403
+ target_entity_type: targetEntityType,
404
404
  relation_type: relationType,
405
405
  });
406
406
  }
@@ -51,10 +51,10 @@ export class CommTemplateRepository {
51
51
  .createQueryBuilder()
52
52
  .update()
53
53
  .set({ is_template: Boolean(is_template) })
54
- .where('mapped_entity_type = :entityType', { entity_type })
55
- .andWhere('organization_id = :orgId', { orgId: organization_id })
56
- .andWhere('level_id = :levelId', { levelId: level_id })
57
- .andWhere('level_type = :levelType', { levelType: level_type })
54
+ .where("mapped_entity_type = :entityType", { entityType: entity_type })
55
+ .andWhere("organization_id = :orgId", { orgId: organization_id })
56
+ .andWhere("level_id = :levelId", { levelId: level_id })
57
+ .andWhere("level_type = :levelType", { levelType: level_type })
58
58
  .execute();
59
59
  }
60
60
 
@@ -117,7 +117,7 @@ export class ActionTemplateMappingService extends EntityServiceImpl {
117
117
  'ct.id AS id',
118
118
  ])
119
119
  .where('ct.code IN (:...codes)', { codes: templateCodes })
120
- .andWhere('ct.mode = :mode', { mode })
120
+ .andWhere('ct.mode::text = :mode', { mode: String(mode) })
121
121
  .andWhere('ct.organization_id = :orgId', { orgId: loggedInUser.organization_id })
122
122
  .andWhere('ct.level_type = :levelType', { levelType: loggedInUser.level_type })
123
123
  .andWhere('ct.level_id = :levelId', { levelId: Number(loggedInUser.level_id) })