Skip to content

Commit

Permalink
debug: event register
Browse files Browse the repository at this point in the history
  • Loading branch information
kyeahxx19 committed Mar 19, 2024
1 parent 04dff43 commit f00b80b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/event/event.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,18 @@ export class EventService {
}

async setTable(userId: number, table: string) {
await this.eventRepository.update({ userId }, { table });
const user = await this.eventRepository.create({ userId, table });
await this.eventRepository.save(user);
}

async registerGroupQueue(id: number) {
try {
// debug
// debug
if (id > 0) {
await this.createGroup([id]);
return 1;
}

try {
const user = await this.userService.findUserByVal('id', id);
const sex = user.userInfo.sex;
const qName = `event_${sex}`;
Expand Down

0 comments on commit f00b80b

Please sign in to comment.