This commit is contained in:
tamaina 2023-05-27 17:28:47 +00:00
parent 84835be483
commit 8d36911f90
2 changed files with 6 additions and 6 deletions

View file

@ -43,7 +43,7 @@ export default class extends Endpoint<'admin/roles/users'> {
.take(ps.limit)
.getMany();
return await Promise.all(assigns.map(async (assign): Promise<Packed<'RoleAssign'>> => ({
return await Promise.all<Promise<Packed<'RoleAssign'>>[]>(assigns.map(async (assign): Promise<Packed<'RoleAssign'>> => ({
id: assign.id,
createdAt: assign.createdAt,
user: await this.userEntityService.pack(assign.user!, me, { detail: true }),

View file

@ -626,7 +626,7 @@ importers:
version: 29.5.0
schema-type:
specifier: github:misskey-dev/schema-type
version: github.com/misskey-dev/schema-type/dc122886fd61b9a457111a30673ce31ecace31be(typescript@5.0.4)
version: github.com/misskey-dev/schema-type/ecfe907fb71f89eb0e41ed4449246ccd8366a260(typescript@5.0.4)
packages/frontend:
dependencies:
@ -1026,7 +1026,7 @@ importers:
version: 4.4.0
schema-type:
specifier: github:misskey-dev/schema-type
version: github.com/misskey-dev/schema-type/dc122886fd61b9a457111a30673ce31ecace31be(typescript@5.0.4)
version: github.com/misskey-dev/schema-type/ecfe907fb71f89eb0e41ed4449246ccd8366a260(typescript@5.0.4)
ts-essentials:
specifier: ^9.3.2
version: 9.3.2(typescript@5.0.4)
@ -20518,9 +20518,9 @@ packages:
version: 0.0.0
dev: false
github.com/misskey-dev/schema-type/dc122886fd61b9a457111a30673ce31ecace31be(typescript@5.0.4):
resolution: {tarball: https://codeload.github.com/misskey-dev/schema-type/tar.gz/dc122886fd61b9a457111a30673ce31ecace31be}
id: github.com/misskey-dev/schema-type/dc122886fd61b9a457111a30673ce31ecace31be
github.com/misskey-dev/schema-type/ecfe907fb71f89eb0e41ed4449246ccd8366a260(typescript@5.0.4):
resolution: {tarball: https://codeload.github.com/misskey-dev/schema-type/tar.gz/ecfe907fb71f89eb0e41ed4449246ccd8366a260}
id: github.com/misskey-dev/schema-type/ecfe907fb71f89eb0e41ed4449246ccd8366a260
name: schema-type
version: 1.0.0
dependencies: