Fix instantiation
This commit is contained in:
@ -56,7 +56,6 @@ const ADMIN_USER_EMAIL =
|
|||||||
const router = AdminJsExpress.buildAuthenticatedRouter(adminBro, {
|
const router = AdminJsExpress.buildAuthenticatedRouter(adminBro, {
|
||||||
authenticate: async (email, password) => {
|
authenticate: async (email, password) => {
|
||||||
const user = await AdminUser.findOne({ email })
|
const user = await AdminUser.findOne({ email })
|
||||||
console.log('looked up user: ', user)
|
|
||||||
if (user) {
|
if (user) {
|
||||||
const matched = await compare(password, user.password)
|
const matched = await compare(password, user.password)
|
||||||
console.log(' -- failed match')
|
console.log(' -- failed match')
|
||||||
|
|||||||
@ -58,7 +58,7 @@ const run = async () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const rssRefreshFeed = createQueueMQ('rssRefreshFeed', {
|
const rssRefreshFeed = new QueueMQ('rssRefreshFeed', {
|
||||||
connection: redisOptions,
|
connection: redisOptions,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user