Skip to content

Commit

Permalink
Fix issue with groupQueue not being defined
Browse files Browse the repository at this point in the history
  • Loading branch information
overthestream committed Dec 19, 2023
1 parent d65d62a commit 86674b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/blurting/blurting.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ export class BlurtingService {
const sexOrient = this.getUserSexOrient(user.userInfo);

const groupQueue: number[] = await this.cacheManager.get(sexOrient);
if (!groupQueue) return false;
if (groupQueue.includes(user.id)) {
return true;
}
Expand Down

0 comments on commit 86674b6

Please sign in to comment.