Skip to content

Commit

Permalink
admin apis
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan-g committed Sep 24, 2023
1 parent aeb3b5a commit 30dbf2b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/features/need/need.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,12 @@ export class NeedController {
const accessToken = config().dataCache.fetchPanelAuthentication(25).token;

const allNeeds = await this.needService.getNeeds();
const filteredNeeds = allNeeds.filter(
(n) => n.purchaser.flaskUserId === 28 || n.auditor.flaskUserId === 28,
);
let purchaserId: number;
try {
for await (const need of allNeeds) {
for await (const need of filteredNeeds) {
const flaskNeed = await this.needService.getFlaskNeed(need.flaskId);
const statusApi = new NeedStatusUpdatesAPIApi();
const statuses = await statusApi.apiV2NeedStatusUpdatesGet(
Expand Down

0 comments on commit 30dbf2b

Please sign in to comment.