Skip to content

Commit

Permalink
not existing application
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiAbdou committed Oct 8, 2024
1 parent 0e63c7d commit 737ee62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/modules/application/application.core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,7 @@ async function shouldReject(
const applicationAcceptedWithSameEmail = await db
.selectFrom('applications')
.where('email', 'ilike', application.email)
.where('id', '!=', application.id)
.where('status', '=', ApplicationStatus.ACCEPTED)
.executeTakeFirst();

Expand Down

0 comments on commit 737ee62

Please sign in to comment.