mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-25 04:09:12 +00:00
fix(discord): ensure server data is created on getServer
This commit is contained in:
parent
01b9a83b95
commit
09e575edaa
1 changed files with 1 additions and 0 deletions
|
@ -150,6 +150,7 @@ class DiscordService extends Service {
|
||||||
q.setGuildid(serverId)
|
q.setGuildid(serverId)
|
||||||
|
|
||||||
const guild = await this.rpc.getGuild(q, this.sharedHeaders)
|
const guild = await this.rpc.getGuild(q, this.sharedHeaders)
|
||||||
|
this.ctx.servers.ensure(guild.toObject())
|
||||||
return guild.toObject()
|
return guild.toObject()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue