Skip to content

Commit

Permalink
Update campaignValidators.ts (#853)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashish-egov authored Jun 12, 2024
1 parent e5976f0 commit 6002800
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ async function validateProjectType(request: any, projectType: any, tenantId: any
}

function isObjectOrArray(value: any) {
return typeof value === 'object' && value !== null && !Array.isArray(value);
return typeof value === 'object' || Array.isArray(value);
}

async function validateChangeDatesRequest(request: any) {
Expand Down

0 comments on commit 6002800

Please sign in to comment.