-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add findAll and findOne for admin only usage (#661)
* add findAll and findOne for admin only usage * add delete file endpoint, findOne now accessible by organizer and fix fileUpload * re-write isAdminFlag * fix isAdmin import * fix person type in campaign application --------- Co-authored-by: Aleksandar Petkov <[email protected]>
- Loading branch information
1 parent
49ae3ea
commit d2704c4
Showing
5 changed files
with
208 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,31 @@ export const mockNewCampaignApplication = { | |
category: CampaignTypeCategory.medical, | ||
} | ||
|
||
export const mockSingleCampaignApplication = { | ||
id: '1', | ||
createdAt: new Date('2022-04-08T06:36:33.661Z'), | ||
updatedAt: new Date('2022-04-08T06:36:33.662Z'), | ||
description: 'Test description1', | ||
organizerId: 'ffdbcc41-85ec-476c-9e59-0662f3b433af', | ||
organizerName: 'Test Organizer1', | ||
organizerEmail: '[email protected]', | ||
beneficiary: 'test beneficary1', | ||
organizerPhone: '123456789', | ||
organizerBeneficiaryRel: 'Test Relation1', | ||
campaignName: 'Test Campaign1', | ||
goal: 'Test Goal1', | ||
history: 'test history1', | ||
amount: '1000', | ||
campaignGuarantee: 'test campaignGuarantee1', | ||
otherFinanceSources: 'test otherFinanceSources1', | ||
otherNotes: 'test otherNotes1', | ||
state: CampaignApplicationState.review, | ||
category: CampaignTypeCategory.medical, | ||
ticketURL: 'testsodifhso1', | ||
archived: false, | ||
documents: [{ id: 'fileId' }], | ||
} | ||
|
||
export const mockCampaigns = [ | ||
{ | ||
id: '1', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters