From c7fb0922944974d62e92ffe470a18dc1a492e827 Mon Sep 17 00:00:00 2001 From: Michael Drury Date: Fri, 23 Sep 2022 22:24:31 +0100 Subject: [PATCH] Fixing issue discovered by test. --- packages/server/src/utilities/users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/utilities/users.js b/packages/server/src/utilities/users.js index 44a57f23e7..3fa222e677 100644 --- a/packages/server/src/utilities/users.js +++ b/packages/server/src/utilities/users.js @@ -6,7 +6,7 @@ const { BUILTIN_ROLE_IDS } = require("@budibase/backend-core/roles") exports.getFullUser = async (ctx, userId) => { const global = await getGlobalUser(userId) - let metadata + let metadata = {} try { // this will throw an error if the db doesn't exist, or there is no appId const db = getAppDB()