fixed Birthday Event, Renamed DB Colls
This commit is contained in:
@@ -20,8 +20,8 @@ module.exports = {
|
||||
const reason = `${temp[1].slice(7, -1)}`
|
||||
|
||||
const db = mClient.db(process.env.M_DB)
|
||||
const honorsColl = db.collection('honors')
|
||||
const reasonsColl = db.collection('honor-reasons')
|
||||
const honorsColl = db.collection('items_honors')
|
||||
const reasonsColl = db.collection('history_honors')
|
||||
const theirHonorLevel = await honorsColl.findOne({ userID: target.id })
|
||||
|
||||
await honorsColl.findOneAndUpdate({ userID: target.id }, { $inc: { honors: honor } }, { upsert: true })
|
||||
|
||||
Reference in New Issue
Block a user