EntityService 整理
This commit is contained in:
parent
487ba201bf
commit
511ff69900
26 changed files with 60 additions and 38 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue