Skip to content

Commit

Permalink
fix(Node): fix new Player is not creates for redis cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Fab1o0107 committed Dec 27, 2023
1 parent 881aaef commit ccfcb1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ export class Node {
const IDataCache = await this.manager.redis?.get(RedisKey.NodePlayers(this.name.toLowerCase()));
const dataCache = IDataCache ? (JSON.parse(IDataCache) as VoiceChannelOptions[]) : [];

if (dataCache.some(({ guildId }) => guildId !== options.guildId)) {
if (!dataCache.some(({ guildId }) => guildId === options.guildId)) {
dataCache.push({
guildId: options.guildId,
channelId: options.channelId,
Expand Down

0 comments on commit ccfcb1c

Please sign in to comment.