Skip to content

Commit 71f18bd

Browse files
committed
use safer transaction mode
1 parent cfce15b commit 71f18bd

File tree

1 file changed

+1
-1
lines changed
  • src/Share/BackgroundJobs/SerializedEntitiesMigration

1 file changed

+1
-1
lines changed

src/Share/BackgroundJobs/SerializedEntitiesMigration/Worker.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ worker scope = do
2727

2828
processEntities :: AuthZ.AuthZReceipt -> Background Bool
2929
processEntities !_authZReceipt = do
30-
PG.runTransactionMode PG.ReadCommitted PG.ReadWrite $ do
30+
PG.runTransaction do
3131
Q.claimEntity >>= \case
3232
Nothing -> pure False
3333
Just (hash32, codebaseUserId) -> do

0 commit comments

Comments
 (0)