-
Notifications
You must be signed in to change notification settings - Fork 376
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove redundant queries to get session (#1204)
## What kind of change does this PR introduce? * We're querying for the session redundantly when we already have the sessionId. Every time we query for a session, it fetches all the amr claims tied to the session too. * There's no need to query for the entire session when we already have the session id, since the `auth.mfa_amr_claims` table already has a foreign-key constraint on the `auth.sessions.id` column, the insert will fail if the given `sessionId` doesn't exist
- Loading branch information
1 parent
1802ff3
commit 669ce97
Showing
3 changed files
with
8 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters