Skip to content

Commit

Permalink
Merge pull request appujet#378 from zebz213/dbbugfix
Browse files Browse the repository at this point in the history
bugfix-mongoose
  • Loading branch information
Xenofic authored Nov 6, 2022
2 parents f372986 + 7d57746 commit 5b72bf0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/Config/247.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = {
TextChannel: message.channelId,
});

await data.update({
await data.updateOne({
Guild: player.guild,
247: player.twentyFourSeven,
VoiceChannel: message.guild.members.me.voice?.channelId,
Expand Down
2 changes: 1 addition & 1 deletion src/slashCommands/Config/247.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module.exports = {
TextChannel: interaction.channelId,
});

await data.update({
await data.updateOne({
Guild: player.guild,
247: player.twentyFourSeven,
VoiceChannel: interaction.guild.members.me.voice?.channelId,
Expand Down

0 comments on commit 5b72bf0

Please sign in to comment.