Skip to content

Commit

Permalink
fix: allow pass update
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentHardouin committed Nov 1, 2024
1 parent 7f7a5bc commit 1af15b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/domain/usecases/HandleNextReservationUseCase.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class HandleNextReservationUseCase {
const passes = await this.passRepository.findAll();
const updatedPasses = [];
for (const pass of passes) {
if (pass.nextEvent !== nextReservation.code) {
if (pass.nextEvent === nextReservation.code) {
continue;
}

Expand Down

0 comments on commit 1af15b1

Please sign in to comment.