EntityService 整理

This commit is contained in:
まっちゃとーにゅ 2023-10-11 11:28:48 +09:00
parent 487ba201bf
commit 511ff69900
No known key found for this signature in database
GPG key ID: 143DE582A97FE052
26 changed files with 60 additions and 38 deletions

View file

@ -43,7 +43,7 @@ export class BlockingEntityService {
@bindThis
public async packMany(
blockings: (MiBlocking['id'] | MiBlocking)[],
me: { id: MiUser['id'] },
me: { id: MiUser['id'] } | null | undefined,
) : Promise<Packed<'Blocking'>[]> {
return (await Promise.allSettled(blockings.map(x => this.pack(x, me))))
.filter(result => result.status === 'fulfilled')