From fc01bdaac9ffebf99382d9237f8a3fcec0cb275f Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Wed, 5 May 2021 12:11:31 +0100 Subject: [PATCH] Formatting. --- packages/worker/src/api/controllers/admin/auth.js | 2 +- packages/worker/src/utilities/redis.js | 4 ++-- packages/worker/src/utilities/templates.js | 7 ++++++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/packages/worker/src/api/controllers/admin/auth.js b/packages/worker/src/api/controllers/admin/auth.js index 1d6981d0ed..6318e523bf 100644 --- a/packages/worker/src/api/controllers/admin/auth.js +++ b/packages/worker/src/api/controllers/admin/auth.js @@ -55,7 +55,7 @@ exports.reset = async ctx => { // don't throw any kind of error to the user, this might give away something } ctx.body = { - message: "If user exists an email has been sent." + message: "If user exists an email has been sent.", } } diff --git a/packages/worker/src/utilities/redis.js b/packages/worker/src/utilities/redis.js index 7e40af6b65..c78060df52 100644 --- a/packages/worker/src/utilities/redis.js +++ b/packages/worker/src/utilities/redis.js @@ -4,7 +4,7 @@ const { newid } = require("@budibase/auth").utils const EXPIRE_TOKEN_SECONDS = 3600 async function getClient(db) { - return await (new Client(db)).init() + return await new Client(db).init() } async function writeACode(db, value) { @@ -48,4 +48,4 @@ exports.checkResetPasswordCode = async (resetCode, deleteCode = false) => { */ exports.getInviteCode = async email => { return writeACode(utils.Databases.INVITATIONS, email) -} \ No newline at end of file +} diff --git a/packages/worker/src/utilities/templates.js b/packages/worker/src/utilities/templates.js index 1c32461245..4a7ca6fc7c 100644 --- a/packages/worker/src/utilities/templates.js +++ b/packages/worker/src/utilities/templates.js @@ -1,6 +1,11 @@ const CouchDB = require("../db") const { getConfigParams, StaticDatabases } = require("@budibase/auth").db -const { Configs, TemplateBindings, LOGO_URL, EmailTemplatePurpose } = require("../constants") +const { + Configs, + TemplateBindings, + LOGO_URL, + EmailTemplatePurpose, +} = require("../constants") const { checkSlashesInUrl } = require("./index") const env = require("../environment")