diff --git a/src/models/repositories/drive-file.ts b/src/models/repositories/drive-file.ts index 62416f69eaa25f906cc4a757753a92dfcfafbe05..61d24bd24ee96470ba075455f171f7a135f205d6 100644 --- a/src/models/repositories/drive-file.ts +++ b/src/models/repositories/drive-file.ts @@ -134,7 +134,7 @@ export class DriveFileRepository extends Repository<DriveFile> { } public async packMany( - files: any[], + files: (DriveFile['id'] | DriveFile)[], options?: PackOptions ) { const items = await Promise.all(files.map(f => this.pack(f, options))); diff --git a/src/models/repositories/notification.ts b/src/models/repositories/notification.ts index 16de6c8c25df8bccd1b0e360ac980ff8bfc672c7..d593dc22a9b37ba71b35ad211d64abd88a8259e3 100644 --- a/src/models/repositories/notification.ts +++ b/src/models/repositories/notification.ts @@ -53,7 +53,7 @@ export class NotificationRepository extends Repository<Notification> { } public packMany( - notifications: any[], + notifications: Notification[], ) { return Promise.all(notifications.map(x => this.pack(x))); }