@moneypot/hub 1.16.4 → 1.16.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,7 +5,7 @@ import { GET_USER_FROM_USER_TOKEN } from "../graphql-queries.js";
|
|
|
5
5
|
import { exactlyOneRow, maybeOneRow } from "../db/util.js";
|
|
6
6
|
import { createGraphqlClient } from "../graphql-client.js";
|
|
7
7
|
import { constant, context, object, sideEffect } from "postgraphile/grafast";
|
|
8
|
-
import { withPgPoolTransaction, } from "../db/index.js";
|
|
8
|
+
import { IsolationLevel, withPgPoolTransaction, } from "../db/index.js";
|
|
9
9
|
import { logger } from "../logger.js";
|
|
10
10
|
import * as jwtService from "../services/jwt-service.js";
|
|
11
11
|
import { extractGraphQLErrorInfo, isGraphQLError } from "../GraphQLError.js";
|
|
@@ -64,7 +64,7 @@ export const HubAuthenticatePlugin = extendSchema(() => {
|
|
|
64
64
|
}
|
|
65
65
|
throw e;
|
|
66
66
|
}
|
|
67
|
-
return withPgPoolTransaction(superuserPool, async (pgClient) => {
|
|
67
|
+
return withPgPoolTransaction(superuserPool, IsolationLevel.READ_COMMITTED, async (pgClient) => {
|
|
68
68
|
const { userToken: jwt, casinoBaseUrl } = input;
|
|
69
69
|
const casino = await pgClient
|
|
70
70
|
.query({
|