Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kyeahxx19 committed Feb 1, 2024
2 parents c15b524 + 6b4417a commit 928f23a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/blurting/blurting.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ export class BlurtingService {
async isMatching(user: UserEntity) {
const sexOrient = this.userService.getUserSexOrient(user.userInfo);
const region = user.userInfo.region.split(' ')[0];
const qName = `${region}_${sexOrient}`;
const qName = /*`${region}_*/ `${sexOrient}`;
const groupQueue: number[] = await this.cacheManager.get(qName);
if (!groupQueue) {
await this.cacheManager.set(qName, []);
Expand All @@ -364,7 +364,7 @@ export class BlurtingService {
}
const sexOrient = this.userService.getUserSexOrient(user.userInfo);
const region = user.userInfo.region.split(' ')[0];
const qName = `${region}_${sexOrient}`;
const qName = /*`${region}_*/ `${sexOrient}`;

let groupQueue: number[] = await this.cacheManager.get(qName);
if (!groupQueue) {
Expand Down Expand Up @@ -400,7 +400,7 @@ export class BlurtingService {
}
}
const oppositeSexorient = this.getOppositeQueueName(sexOrient);
const oppositeQueueName = `${region}_${oppositeSexorient}`;
const oppositeQueueName = /*`${region}_*/ `${oppositeSexorient}`;
let oppositeQueue: number[] =
await this.cacheManager.get(oppositeQueueName);

Expand Down Expand Up @@ -434,7 +434,7 @@ export class BlurtingService {
const user = await this.userService.findUserByVal('id', id);
const sexOrient = this.userService.getUserSexOrient(user.userInfo);
const region = user.userInfo.region.split(' ')[0];
const qName = `${region}_${sexOrient}`;
const qName = /*`${region}_*/ `${sexOrient}`;

const groupQueue: number[] = await this.cacheManager.get(qName);
if (groupQueue.includes(id)) {
Expand Down

0 comments on commit 928f23a

Please sign in to comment.