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], }); }