Skip to content

Commit

Permalink
Run in all stages if no allowlist specified (#17)
Browse files Browse the repository at this point in the history
Fixes 99x#225

Fixes 99x#229
  • Loading branch information
domdomegg authored Oct 15, 2023
1 parent f8ab96f commit 6cd556c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class ServerlessDynamodbLocal {
* @return {Boolean} if the handler can run for the provided stage
*/
shouldExecute() {
if (this.config.stages && this.config.stages.includes(this.stage)) {
if (!this.config.stages || this.config.stages.includes(this.stage)) {
return true;
}
return false;
Expand Down

0 comments on commit 6cd556c

Please sign in to comment.