Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support for using spot instances #171

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: fix validation for marketType as undefined can still be returned…
… it seems
troinine committed Nov 24, 2023

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
commit 8fc3496d4228c648e3a84a7a4a5262d4a579fee0
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
@@ -62972,7 +62972,7 @@ class Config {
throw new Error(`Not all the required inputs are provided for the 'start' mode`);
}

if (this.marketType.trim().length > 0 && this.input.marketType !== 'spot') {
if (this.marketType?.length > 0 && this.input.marketType !== 'spot') {
throw new Error(`Invalid 'market-type' input. Allowed values: spot.`);
}
} else if (this.input.mode === 'stop') {
2 changes: 1 addition & 1 deletion src/config.js
Original file line number Diff line number Diff line change
@@ -52,7 +52,7 @@ class Config {
throw new Error(`Not all the required inputs are provided for the 'start' mode`);
}

if (this.marketType.trim().length > 0 && this.input.marketType !== 'spot') {
if (this.marketType?.length > 0 && this.input.marketType !== 'spot') {
throw new Error(`Invalid 'market-type' input. Allowed values: spot.`);
}
} else if (this.input.mode === 'stop') {