Skip to content

Commit

Permalink
Fix dbPath isAbsolute logic (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
jvarho committed Apr 21, 2024
1 parent 43c743c commit 8233f73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ class ServerlessDynamoDBPlugin implements Plugin {
...this.options,
};

if (options.dbPath && path.isAbsolute(options.dbPath)) {
if (options.dbPath && !path.isAbsolute(options.dbPath)) {
options.dbPath = path.join(this.serverless.config.servicePath, options.dbPath);
}

Expand Down

0 comments on commit 8233f73

Please sign in to comment.