fix: pass current user into InstanceEntityService.packMany
This commit is contained in:
parent
c344705d67
commit
858ba18876
3 changed files with 5 additions and 4 deletions
|
|
@ -63,8 +63,9 @@ export class InstanceEntityService {
|
|||
@bindThis
|
||||
public packMany(
|
||||
instances: MiInstance[],
|
||||
me?: { id: MiUser['id']; } | null | undefined,
|
||||
) {
|
||||
return Promise.all(instances.map(x => this.pack(x)));
|
||||
return Promise.all(instances.map(x => this.pack(x, me)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue