Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redo prebookCheck validation: UserServiceSelected #84

Open
rconjoe opened this issue Nov 9, 2021 · 2 comments
Open

redo prebookCheck validation: UserServiceSelected #84

rconjoe opened this issue Nov 9, 2021 · 2 comments

Comments

@rconjoe
Copy link
Owner

rconjoe commented Nov 9, 2021

There is a check before you book anything that makes sure you don't already have anything booked during a given time that you're tryign to purchase for

it did weird dayjs comparasions that can just be integer comparasions of unix times now. This is holding up #72 because the validation is in the same function

@rconjoe
Copy link
Owner Author

rconjoe commented Nov 10, 2021

I might just offload this onto the api and do some checks inside of the checkout call, and return some custom error code if you have overlaps

@rconjoe
Copy link
Owner Author

rconjoe commented Nov 12, 2021

Delayed

This is going on the back burner for now. The checks for not-buying-your-own-session work, but overlap booking yourself is still possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant