Skip to content

Commit 5dc21a4

Browse files
committed
Fix bug with rollbacks
1 parent fe06a81 commit 5dc21a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cardano-db/src/Cardano/Db/Query.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ queryMinRefId txIdField txId = do
541541
res <- select $ do
542542
rec <- from $ table @record
543543
where_ (rec ^. txIdField >=. val txId)
544-
orderBy [asc (rec ^. txIdField)]
544+
orderBy [asc (rec ^. persistIdField)]
545545
limit 1
546546
pure $ rec ^. persistIdField
547547
pure $ unValue <$> listToMaybe res

0 commit comments

Comments
 (0)