Skip to content

Commit

Permalink
πŸš‘ server: fix transaction sending condition
Browse files Browse the repository at this point in the history
  • Loading branch information
cruzdanilo committed Nov 13, 2024
1 parent cc904d2 commit f58c7dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/hooks/cryptomate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ export default new Hono().post(
}
}
case "CLEARING": {
if (payload.status !== "PENDING") return c.json({});
getActiveSpan()?.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_OP, "cryptomate.clearing");
const { account, call } = await prepareCollection(payload);
return startSpan({ name: "collect credit", op: "exa.collect", attributes: { account } }, async () => {
Expand Down

0 comments on commit f58c7dd

Please sign in to comment.