renamed db column
This commit is contained in:
@@ -57,7 +57,7 @@ async function quotesAdd(interaction) {
|
||||
messageID: messageID,
|
||||
channelID: channelID,
|
||||
guildID: guildID,
|
||||
by: msgData.author.id,
|
||||
userID: msgData.author.id,
|
||||
count: 0
|
||||
}
|
||||
}, { upsert: true })
|
||||
@@ -164,7 +164,7 @@ async function quotesRandom(interaction) {
|
||||
if (user) {
|
||||
rdm = await quotesColl.aggregate([
|
||||
{
|
||||
$match: { by: user.id },
|
||||
$match: { userID: user.id },
|
||||
}, {
|
||||
$sample: { size: 1 }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user