Skip to content

Commit

Permalink
Try serial mode in resolve market transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
IanPhilips committed Jan 24, 2025
1 parent bd2b629 commit e58ff0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/shared/src/resolve-market-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import { APIError } from 'common//api/utils'
import { trackPublicEvent } from 'shared/analytics'
import { recordContractEdit } from 'shared/record-contract-edit'
import {
SERIAL_MODE,
SupabaseTransaction,
createSupabaseDirectClient,
} from './supabase/init'
Expand Down Expand Up @@ -69,7 +70,7 @@ export const resolveMarketHelper = async (
payoutsWithoutLoans,
updatedContractAttrs,
userUpdates,
} = await pg.tx(async (tx) => {
} = await pg.tx({ mode: SERIAL_MODE }, async (tx) => {
const { closeTime, id: contractId, outcomeType } = unresolvedContract
const {
contract: c,
Expand Down

0 comments on commit e58ff0f

Please sign in to comment.