Skip to content

Commit

Permalink
fix table size bug
Browse files Browse the repository at this point in the history
  • Loading branch information
alechemy committed Jun 14, 2023
1 parent 0bbc345 commit 7b76396
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions src/extensions/cli-extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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;
Expand Down

0 comments on commit 7b76396

Please sign in to comment.