Skip to content

Commit

Permalink
Update order.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
rouzwelt committed Nov 25, 2024
1 parent 6b45f13 commit 10dd578
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/order.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,14 +231,20 @@ export async function handleRemoveOrderbookOwnersProfileMap(
}
const orderbookOwnerProfileItem = orderbooksOwnersProfileMap.get(orderbook);
if (orderbookOwnerProfileItem) {
// eslint-disable-next-line no-console
console.log("aa1");
const ownerProfile = orderbookOwnerProfileItem.get(orderStruct.owner.toLowerCase());
if (ownerProfile) {
ownerProfile.orders.delete(orderDetails.orderHash.toLowerCase());
const x = ownerProfile.orders.delete(orderDetails.orderHash.toLowerCase());
// eslint-disable-next-line no-console
console.log("aa2", x);
}
}
}
if (span) {
for (const orderbook in changes) {
// eslint-disable-next-line no-console
console.log("aa3");
span.setAttribute(`orderbooksChanges.${orderbook}.removedOrders`, changes[orderbook]);
}
}
Expand Down

0 comments on commit 10dd578

Please sign in to comment.