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