Skip to content

Commit

Permalink
fix: rollback rgbpp transaction job response
Browse files Browse the repository at this point in the history
  • Loading branch information
ahonn committed Mar 28, 2024
1 parent b11071d commit fc1c71a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/rgbpp/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const transactionRoute: FastifyPluginCallback<Record<never, never>, Server, ZodT
response: {
200: z.object({
state: z.string().describe('The state of the transaction'),
reason: z.string().optional().describe('The reason why the transaction failed'),
failedReason: z.string().optional().describe('The reason why the transaction failed'),
}),
},
},
Expand All @@ -150,7 +150,7 @@ const transactionRoute: FastifyPluginCallback<Record<never, never>, Server, ZodT
if (state === 'failed') {
return {
state,
reason: job.failedReason,
failedReason: job.failedReason,
};
}
return { state };
Expand Down

0 comments on commit fc1c71a

Please sign in to comment.