refactor wishlist manipulation code (#66)

This commit is contained in:
Wingy 2022-12-10 17:00:24 -05:00 committed by GitHub
parent 0d7d73744c
commit 0b26ec0ce4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 521 additions and 361 deletions

View file

@ -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) => {