Linting and formatting.
This commit is contained in:
parent
f6425524a4
commit
a464aa09db
|
@ -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,
|
||||||
})
|
})
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue