Skip to content

Commit

Permalink
fix: allow separate files upload (prod) (#150)
Browse files Browse the repository at this point in the history
fix: allow separate files upload
  • Loading branch information
amateima authored Nov 23, 2022
1 parent 08da620 commit dd94de4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/airdrop/entry-points/http/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ export class AirdropController {
@UploadedFiles() files: { walletRewards?: Express.Multer.File[]; communityRewards?: Express.Multer.File[] },
) {
return this.airdropService.processUploadedRewardsFiles({
communityRewardsFile: files.communityRewards[0],
walletRewardsFile: files.walletRewards[0],
communityRewardsFile: files?.communityRewards?.[0],
walletRewardsFile: files?.walletRewards?.[0],
});
}

Expand Down

0 comments on commit dd94de4

Please sign in to comment.