From 7b7639640510b9b082363e1a9df6d80d8757abf2 Mon Sep 17 00:00:00 2001 From: Alec Custer Date: Wed, 14 Jun 2023 08:29:12 -0700 Subject: [PATCH] fix table size bug --- package.json | 2 +- src/extensions/cli-extension.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 87338a8..97549c8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dine-at-disney", - "version": "1.1.0", + "version": "1.1.1", "description": "A CLI tool that checks for dining availability at Disneyland and California Adventure park restaurants.", "types": "build/types/types.d.ts", "bin": { diff --git a/src/extensions/cli-extension.ts b/src/extensions/cli-extension.ts index 25393ad..c9a984a 100644 --- a/src/extensions/cli-extension.ts +++ b/src/extensions/cli-extension.ts @@ -172,7 +172,7 @@ module.exports = (toolbox: GluegunToolbox) => { if (restaurantIds.length === 0) { print.warning(`No offers found for anything. Checking again in 60s. ${numTries} total attempts.`); setTimeout(() => { - checkTables({ date, onSuccess, numTries: (numTries += 1), tables, print, ids, mapping }); + checkTables({ date, onSuccess, numTries: (numTries += 1), partySize, tables, print, ids, mapping }); }, 60000); } else { if (ids) { @@ -197,7 +197,7 @@ module.exports = (toolbox: GluegunToolbox) => { //Keep checking for new offers setTimeout(() => { - checkTables({ date, onSuccess, numTries: (numTries += 1), tables, print, ids, mapping }); + checkTables({ date, onSuccess, numTries: (numTries += 1), partySize, tables, print, ids, mapping }); }, 60000); } else { const { table } = print;