chore: prettier Server

This commit is contained in:
41666 2020-08-02 16:29:00 -04:00
parent d08c9e4829
commit 5119e1142c
No known key found for this signature in database
GPG key ID: BC51D07640DC10AF
5 changed files with 16 additions and 16 deletions

View file

@ -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)
}