Linting and formatting.

This commit is contained in:
mike12345567 2021-04-20 17:33:44 +01:00
parent ec3a9db383
commit de19e986c6
2 changed files with 8 additions and 5 deletions

View File

@ -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,
})

View File

@ -7,7 +7,6 @@ const {
DocumentTypes,
SEPARATOR,
InternalTables,
generateUserMetadataID,
} = require("../../db/utils")
const userController = require("./user")
const {