rez_core 5.0.101 → 5.0.103

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.101",
3
+ "version": "5.0.103",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -201,11 +201,12 @@ export class ActionRepository {
201
201
  }
202
202
 
203
203
  const actionRepo = this.reflectionHelper.getRepoService('ActionEntity');
204
- actionResults = await actionRepo.find({
205
- where: {
206
- id: In(actionIds),
207
- },
208
- });
204
+
205
+ actionResults = await actionRepo
206
+ .createQueryBuilder('a')
207
+ .select(['a.id AS action_id', 'a.name AS action_name'])
208
+ .where('a.id IN(:...actionIds)', { actionIds: filteredActionIds })
209
+ .getRawMany();
209
210
 
210
211
  // Step 3: Format result
211
212
  const enrichedResult = actionResults.map((row) => ({
@@ -1,6 +1,6 @@
1
1
  import { Injectable } from '@nestjs/common';
2
2
  import { InjectRepository } from '@nestjs/typeorm';
3
- import { MoreThan, Repository } from 'typeorm';
3
+ import { IsNull, MoreThan, Not, Repository } from 'typeorm';
4
4
  import { WorkflowLevelMappingEntity } from '../entity/workflow-level-mapping.entity';
5
5
  import { StageGroup } from '../entity/stage-group.entity';
6
6
  import { Stage } from '../entity/stage.entity';
@@ -224,6 +224,7 @@ export class StageMovementRepository {
224
224
  const actionData = await actionResourceMappingRepo.findOne({
225
225
  where: {
226
226
  stg_act_mapping_id: item.mapping_id,
227
+ form_id: Not(IsNull())
227
228
  },
228
229
  });
229
230