mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-15 01:49:10 +00:00
chore: prettier Server
This commit is contained in:
parent
d08c9e4829
commit
5119e1142c
5 changed files with 16 additions and 16 deletions
|
@ -43,7 +43,7 @@ class PresentationService extends Service {
|
|||
const serverData = await this.ctx.server.get(server.id)
|
||||
const serverRoles = await this.discord.getRoles(server.id)
|
||||
const memberRoles = member.rolesList
|
||||
.map(id => serverRoles.find(role => role.id === id))
|
||||
.map((id) => serverRoles.find((role) => role.id === id))
|
||||
.sort((a, b) => (a.position > b.position ? -1 : 1))
|
||||
|
||||
const color = memberRoles.length > 0 ? memberRoles[0].color : 0
|
||||
|
@ -67,7 +67,7 @@ class PresentationService extends Service {
|
|||
if (process.env.DISABLE_CACHE === 'true') {
|
||||
return func()
|
||||
}
|
||||
|
||||
|
||||
if (this.cache.has(key)) {
|
||||
return this.cache.get(key)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue