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/dist/module/workflow/repository/action.repository.js +5 -5
- package/dist/module/workflow/repository/action.repository.js.map +1 -1
- package/dist/module/workflow/repository/stage-movement.repository.js +1 -0
- package/dist/module/workflow/repository/stage-movement.repository.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/workflow/repository/action.repository.ts +6 -5
- package/src/module/workflow/repository/stage-movement.repository.ts +2 -1
package/package.json
CHANGED
|
@@ -201,11 +201,12 @@ export class ActionRepository {
|
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
const actionRepo = this.reflectionHelper.getRepoService('ActionEntity');
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
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
|
|