mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 01:13:48 +01:00
refactor
This commit is contained in:
parent
a7e5db82df
commit
35bc5b91ad
@ -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 New Issue
Block a user