refactor wishlist manipulation code (#66)
This commit is contained in:
parent
0d7d73744c
commit
0b26ec0ce4
8 changed files with 521 additions and 361 deletions
|
@ -15,6 +15,7 @@ const path = require('path')
|
|||
_CC._ = require('lodash')
|
||||
_CC.moment = require('moment/min/moment-with-locales')
|
||||
|
||||
const { WishlistManager } = require('./structures/WishlistManager')
|
||||
const config = require('./config')
|
||||
_CC.config = config
|
||||
|
||||
|
@ -55,6 +56,9 @@ app.set('base', config.base)
|
|||
app.set('trust proxy', config.trustProxy)
|
||||
|
||||
const db = new PouchDB('users')
|
||||
_CC.usersDb = db
|
||||
|
||||
_CC.wishlistManager = new WishlistManager()
|
||||
|
||||
passport.use('local', new LocalStrategy(
|
||||
(username, password, done) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue