Skip to content

Commit

Permalink
Merge pull request #44 from overthestream/renewal
Browse files Browse the repository at this point in the history
Renewal
  • Loading branch information
overthestream authored Oct 13, 2024
2 parents 392b656 + 6511831 commit 0e5a764
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/domain/blurting/blurting.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,17 +272,17 @@ export class BlurtingService {
await this.cacheManager.set(qName, []);
}

if (groupQueue.includes(user.id)) {
return State.Matching;
}
if (user.group != null && (await this.checkPartOver(user.group.id))) {
if (user.group && (await this.checkPartOver(user.group.id))) {
return State.Arrowing;
}
if (user.group != null && (await this.checkGroupOver(user.group.id))) {
if (user.group && (await this.checkGroupOver(user.group.id))) {
return State.End;
}
if (user.group) {
return State.Blurting;
}
if (user.group != null) {
return State.End;
if (groupQueue.includes(user.id)) {
return State.Matching;
}
return State.Start;
}
Expand Down

0 comments on commit 0e5a764

Please sign in to comment.