mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix: empty and restore over 1,000 items (#12751)
This commit is contained in:
parent
4f25cec6df
commit
6740c67ed8
39 changed files with 540 additions and 145 deletions
10
server/src/interfaces/trash.interface.ts
Normal file
10
server/src/interfaces/trash.interface.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import { Paginated, PaginationOptions } from 'src/utils/pagination';
|
||||
|
||||
export const ITrashRepository = 'ITrashRepository';
|
||||
|
||||
export interface ITrashRepository {
|
||||
empty(userId: string): Promise<number>;
|
||||
restore(userId: string): Promise<number>;
|
||||
restoreAll(assetIds: string[]): Promise<number>;
|
||||
getDeletedIds(pagination: PaginationOptions): Paginated<string>;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue