Skip to content

Commit

Permalink
increase timeout for place order (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sladuca authored Oct 7, 2024
1 parent 96ae4bd commit f25a2e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/helpers/waitingForOrder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ export async function waitForOrderToNotBePending(orderId: string) {
const spinner = ora(
`Order ${orderId} - pending (this can take a moment)`,
).start();
const maxTries = 25;

// 1 minute
const maxTries = 120;
for (let i = 0; i < maxTries; i++) {
const order = await getOrder(orderId);

Expand Down

0 comments on commit f25a2e9

Please sign in to comment.