From ef6a7f1411c1c1bf73f75aa3494213d731fc8321 Mon Sep 17 00:00:00 2001 From: Benjamin Toby Date: Tue, 10 Dec 2024 19:44:59 +0100 Subject: [PATCH] Updates --- .../functions/backend/cookies/get-auth-cookie-names.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-shared/functions/backend/cookies/get-auth-cookie-names.js b/package-shared/functions/backend/cookies/get-auth-cookie-names.js index 4603d7a..9cecf42 100644 --- a/package-shared/functions/backend/cookies/get-auth-cookie-names.js +++ b/package-shared/functions/backend/cookies/get-auth-cookie-names.js @@ -17,7 +17,7 @@ module.exports = function getAuthCookieNames(params) { process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME || "one-time-code"; const targetDatabase = - params?.database || + params?.database?.replace(/^datasquirel_user_\d+_/, "") || process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/, ""); let keyCookieName = cookiesPrefix; diff --git a/package.json b/package.json index fd48b3a..301e15e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@moduletrace/datasquirel", - "version": "2.9.1", + "version": "2.9.2", "description": "Cloud-based SQL data management tool", "main": "index.js", "bin": {