Half of my functions are not working at the moment because of Firebase null errors. To be clear, they all worked like 2 weeks ago.
Example: Check for discount code.
User adds a discount code "code"
I then check for the document admin/documentID/codes/code
But it throws a null error because there is no such document as collection/doc/collection/code
This worked fine like 2 weeks ago but now it no longer works. Any ideas what happened / How do I return a location not found so I can then handle it and say "This code does not exist, please try again?