From dd94de49011b50bf76acb66a5974ff7377d624f9 Mon Sep 17 00:00:00 2001 From: amateima <89395931+amateima@users.noreply.github.com> Date: Wed, 23 Nov 2022 13:39:40 +0200 Subject: [PATCH] fix: allow separate files upload (prod) (#150) fix: allow separate files upload --- src/modules/airdrop/entry-points/http/controller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/airdrop/entry-points/http/controller.ts b/src/modules/airdrop/entry-points/http/controller.ts index 2fdf6041..5c710e3d 100644 --- a/src/modules/airdrop/entry-points/http/controller.ts +++ b/src/modules/airdrop/entry-points/http/controller.ts @@ -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], }); }