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 ec59f3c commit d8c07eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/features/need/need.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import config from 'src/config';
import { convertFlaskToSayRoles, daysDifference } from 'src/utils/helpers';
import { NeedStatusUpdatesAPIApi } from 'src/generated-sources/openapi';
import { SyncService } from '../sync/sync.service';
import { ServerError } from 'src/filters/server-exception.filter';

@ApiTags('Needs')
@ApiSecurity('flask-access-token')
Expand Down Expand Up @@ -327,6 +328,9 @@ export class NeedController {
auditorNgo,
);
}
if (!auditor || !purchaser) {
throw new ServerError('huuuuh');
}
console.log(flaskNeed);
try {
await this.needService.updateNeedContributors(
Expand Down

0 comments on commit d8c07eb

Please sign in to comment.