From 8233f733cc48d5f376f82fb7aba54a5183918400 Mon Sep 17 00:00:00 2001 From: Jan Varho Date: Sun, 21 Apr 2024 12:15:51 +0300 Subject: [PATCH] Fix dbPath isAbsolute logic (#49) --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 979e3f0..a8945d9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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); }