Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher-Li committed Nov 9, 2023
1 parent a564b30 commit 8612b0d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ BEGIN
/* Upsert the perpetual_position record for this order_fill event. */
SELECT * INTO perpetual_position_record FROM perpetual_positions WHERE "subaccountId" = subaccount_uuid
AND "perpetualId" = perpetual_market_record."id"
ORDER BY "createdAtHeight" DESC;
ORDER BY "openEventId" DESC;
IF NOT FOUND THEN
RAISE EXCEPTION 'Unable to find existing perpetual position, subaccountId: %, perpetualId: %', subaccount_uuid, perpetual_market_record."id";
END IF;
Expand Down

0 comments on commit 8612b0d

Please sign in to comment.