From bb748332f7f68de0074f1922d0f703b56ee1b7c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kr=C3=A6n=20Hansen?= Date: Mon, 17 Apr 2023 11:40:45 +0200 Subject: [PATCH] Rename `local-mongodb` to enable app replacements (#5734) * Rename local-mongodb to enable app replacements * Reverted rename of local-mongodb-uri --- .../functions/customAuthentication/source.js | 2 +- .../services/{local-mongodb => mongodb}/config.json | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) rename integration-tests/realm-apps/with-custom-function/services/{local-mongodb => mongodb}/config.json (68%) diff --git a/integration-tests/realm-apps/with-custom-function/functions/customAuthentication/source.js b/integration-tests/realm-apps/with-custom-function/functions/customAuthentication/source.js index 46e2e34fda..eb7b992bf5 100644 --- a/integration-tests/realm-apps/with-custom-function/functions/customAuthentication/source.js +++ b/integration-tests/realm-apps/with-custom-function/functions/customAuthentication/source.js @@ -21,7 +21,7 @@ exports = async function (loginPayload) { // Get a handle for the app.users collection - const users = context.services.get("local-mongodb").db("app").collection("users"); + const users = context.services.get("mongodb").db("app").collection("users"); // Parse out custom data from the FunctionCredential diff --git a/integration-tests/realm-apps/with-custom-function/services/local-mongodb/config.json b/integration-tests/realm-apps/with-custom-function/services/mongodb/config.json similarity index 68% rename from integration-tests/realm-apps/with-custom-function/services/local-mongodb/config.json rename to integration-tests/realm-apps/with-custom-function/services/mongodb/config.json index 302258890c..c021f78cea 100644 --- a/integration-tests/realm-apps/with-custom-function/services/local-mongodb/config.json +++ b/integration-tests/realm-apps/with-custom-function/services/mongodb/config.json @@ -1,8 +1,9 @@ { - "name": "local-mongodb", + "name": "mongodb", "type": "mongodb", "config": {}, "secret_config": { "uri": "local-mongodb-uri" - } + }, + "version": 1 } \ No newline at end of file