This commit is contained in:
syuilo 2021-03-19 18:22:14 +09:00
parent d381d31e5e
commit fbc9d5ecba
2 changed files with 2 additions and 2 deletions

View file

@ -134,7 +134,7 @@ export class DriveFileRepository extends Repository<DriveFile> {
} }
public async packMany( public async packMany(
files: any[], files: (DriveFile['id'] | DriveFile)[],
options?: PackOptions options?: PackOptions
) { ) {
const items = await Promise.all(files.map(f => this.pack(f, options))); const items = await Promise.all(files.map(f => this.pack(f, options)));

View file

@ -53,7 +53,7 @@ export class NotificationRepository extends Repository<Notification> {
} }
public packMany( public packMany(
notifications: any[], notifications: Notification[],
) { ) {
return Promise.all(notifications.map(x => this.pack(x))); return Promise.all(notifications.map(x => this.pack(x)));
} }