Skip to content

Commit 1d415d2

Browse files
committed
fix:var name mismatch
1 parent 729aad2 commit 1d415d2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

apps/api/internal/services/application.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -577,18 +577,18 @@ func (s *ApplicationService) TransitionWaitlistedApplications(ctx context.Contex
577577
return err
578578
}
579579

580-
totalAccepted, err := s.appRepo.GetTotalAcceptedApplicationsByEventId(ctx, eventId)
580+
attendeeCount, err := s.appRepo.GetAttendeeCountByEventId(ctx, eventId)
581581
if err != nil {
582582
s.logger.Err(err).Msg("Failed to get total accepted application amount.")
583583
}
584-
if (acceptanceQuota - totalAccepted) <= acceptanceCount {
585-
s.logger.Info().Msgf("%v - %v <= %v", acceptanceQuota, totalAccepted, acceptanceCount)
584+
if (acceptanceQuota - attendeeCount) <= acceptanceCount {
585+
s.logger.Info().Msgf("%v - %v <= %v", acceptanceQuota, attendeeCount, acceptanceCount)
586586
if s.scheduler != nil {
587587
// The API also uses this file, and this function can be run from an endpoint so we have to check that the scheduler exists.
588588
// Technically the task should be removed from the scheduler. However the scheduler is only running for this task.
589589
s.scheduler.Shutdown()
590590
}
591-
acceptanceCount = acceptanceQuota - totalAccepted
591+
acceptanceCount = acceptanceQuota - attendeeCount
592592
}
593593

594594
s.logger.Info().Msgf("Acceptance count: %v", acceptanceCount)

0 commit comments

Comments
 (0)