Is your feature request related to a problem? Please describe.
There is a major issue with validateUserRemaningSessions where if a user conveniently books a session that downgrades their membership status to casual, the capacity counting function validateUserRemaningSessions would give a false casual/member capacity due to the system counting capacities based on user roles.
Describe the solution you'd like
We need to update the booking schema to determine if a booking takes a casual or member slot.
Describe alternatives you've considered
This is open for discussion as there are several ways this user story could be completed.
Additional context
Reproduction steps:
- Have an account with 1 booking session and member status
- Book a session(which downgrades you to casual)
- Check admin panel for capacities (you will see that there is a casual capacity increase and the normal capacity is left untouched)
BEFORE MERGING
Is your feature request related to a problem? Please describe.
There is a major issue with
validateUserRemaningSessionswhere if a user conveniently books a session that downgrades their membership status tocasual, the capacity counting functionvalidateUserRemaningSessionswould give a false casual/member capacity due to the system counting capacities based on user roles.Describe the solution you'd like
We need to update the booking schema to determine if a booking takes a casual or member slot.
Describe alternatives you've considered
This is open for discussion as there are several ways this user story could be completed.
Additional context
Reproduction steps:
BEFORE MERGING
pnpm generate:types)git fetch origin master:master, thengit rebase masterorgit merge master)