Skip to content

Commit

Permalink
fix(api): fix guild.get
Browse files Browse the repository at this point in the history
  • Loading branch information
ilharp committed Mar 10, 2024
1 parent 4a09869 commit 2800c7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/engine-chronocat-api/src/api/guild/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { chronoEventEmitter, groupMap } from '../../globalVars'
export const buildGuildList =
(ctx: ChronocatContext) => async (): Promise<GuildListResponse> => {
await new Promise<void>((res, rej) => {
chronoEventEmitter.once('buddyListChange', res)
chronoEventEmitter.once('groupListUpdate', res)
setTimeout(rej, ctx.chronocat.timeout)
void getGroupList()
}).catch(() =>
Expand Down

0 comments on commit 2800c7c

Please sign in to comment.