fix(backend): InstanceEntityService.packMany に me が渡っていないのを修正 (#14360)

* fix: pass current user into `InstanceEntityService.packMany`

(cherry picked from commit 858ba188768017764c61c4a5591bdf2524a850e7)

* Update Changelog

* origin

* Update Changelog

---------

Co-authored-by: Hazel K <acomputerdog@gmail.com>
This commit is contained in:
かっこかり
2024-08-11 11:28:07 +09:00
committed by GitHub
parent 046f2435b2
commit 0aaf74ee22
4 changed files with 7 additions and 4 deletions

View File

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