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 jwt = require("jsonwebtoken")
const { options } = require("./middleware/passport/jwt") const { options } = require("./middleware/passport/jwt")
const { createUserEmailView } = require("./db/views") const { createUserEmailView } = require("./db/views")
@ -103,9 +108,8 @@ exports.isClient = ctx => {
exports.getGlobalUserByEmail = async email => { exports.getGlobalUserByEmail = async email => {
const db = getDB(StaticDatabases.GLOBAL.name) const db = getDB(StaticDatabases.GLOBAL.name)
try { try {
let users = (await db.query( let users = (
`database/${ViewNames.USER_BY_EMAIL}`, await db.query(`database/${ViewNames.USER_BY_EMAIL}`, {
{
key: email, key: email,
include_docs: true, include_docs: true,
}) })

View File

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