refactor
This commit is contained in:
parent
d381d31e5e
commit
fbc9d5ecba
2 changed files with 2 additions and 2 deletions
|
@ -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)));
|
||||
|
|
|
@ -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)));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue