Skip to content

Commit

Permalink
fix conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadPCh committed Oct 29, 2024
1 parent f33cb33 commit 7c23f75
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/repositories/projectVerificationRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,7 @@ export const approveMultipleProjects = async ({
.update<Project>(Project)
.set({
isGivbackEligible: approved,
verified: approved ? true : () => 'verified',
verificationStatus: approved ? null : () => '"verificationStatus"',
...(approved && { verificationStatus: null, verified: true }),
})
.where('project.id IN (:...ids)', { ids: projectsIds })
.returning('*')
Expand Down

0 comments on commit 7c23f75

Please sign in to comment.