HackRU / OneAppFlutter

An official event app for HackRU
https://oneapp.hackru.org
MIT License
30 stars 13 forks source link

wow this scanning stuff is really tricky #61

Closed mjrb closed 5 years ago

mjrb commented 5 years ago

its related to what i texted you, but i kinda see why you did that because having a billion if statements can be really annoying. one of the key issues is knowing weather or not a qr is already linked to a user. lcs doesn't currently have a way to do this so i sort of hacked it. if you try to attend with a qr that is valid, then this is valid behavior, but if the endpoint returns user does not exist, i checked to see if it was not a valid email and linked it, if it was a valid email i reraised the user not found error.

I kinda wished i sat down with you an helped qa/debug this, because its so much easier figuring things out with direct db access. anyways, look this over and maybe we can merge it/deploy to beta around 8:30 @_@.