eisbuk / EisBuk

Manage bookings for ice skating lessons
GNU Affero General Public License v3.0
0 stars 1 forks source link

Optimise 'queryAuthStatus' by using two 'where' clauses instead of iterating over all docs #935

Closed ikusteu closed 7 months ago

ikusteu commented 7 months ago

Fixes #933

silviot commented 7 months ago

Also the check on auth before the line

        const { email, phone_number: phone } = auth!.token!;

that prevents this sentry entry is not yet in the PR.