Aapo Salminen opened merge request !113: Feature/cancel unactivated reservation at greenteam / VaraaKajakki

Aapo Salminen
2024-09-11T12:39:00Z

Middleware check is called before getReservations, getReservationsByUserId and getReservationsOfKayak functions in reservationRoutes. Goes through all reservations in database and checks if they are still valid. If reservation is not activated 2 hours after estimated fetch time it is removed from DB.