diff --git a/packages/auth/src/utils.js b/packages/auth/src/utils.js index 14925653c9..b9514d059c 100644 --- a/packages/auth/src/utils.js +++ b/packages/auth/src/utils.js @@ -1,4 +1,9 @@ -const { DocumentTypes, SEPARATOR, ViewNames, StaticDatabases } = require("./db/utils") +const { + DocumentTypes, + SEPARATOR, + ViewNames, + StaticDatabases, +} = require("./db/utils") const jwt = require("jsonwebtoken") const { options } = require("./middleware/passport/jwt") const { createUserEmailView } = require("./db/views") @@ -103,9 +108,8 @@ exports.isClient = ctx => { exports.getGlobalUserByEmail = async email => { const db = getDB(StaticDatabases.GLOBAL.name) try { - let users = (await db.query( - `database/${ViewNames.USER_BY_EMAIL}`, - { + let users = ( + await db.query(`database/${ViewNames.USER_BY_EMAIL}`, { key: email, include_docs: true, }) diff --git a/packages/server/src/api/controllers/row.js b/packages/server/src/api/controllers/row.js index 3ceac0d832..48766129b2 100644 --- a/packages/server/src/api/controllers/row.js +++ b/packages/server/src/api/controllers/row.js @@ -7,7 +7,6 @@ const { DocumentTypes, SEPARATOR, InternalTables, - generateUserMetadataID, } = require("../../db/utils") const userController = require("./user") const {