mirror of
https://github.com/immich-app/immich.git
synced 2025-12-30 01:11:52 +03:00
refactor: queue separate jobs for deleting integrity reports
This commit is contained in:
@@ -286,10 +286,19 @@ export interface IIntegrityJob {
|
||||
refreshOnly?: boolean;
|
||||
}
|
||||
|
||||
export interface IIntegrityDeleteReportJob {
|
||||
export interface IIntegrityDeleteReportTypeJob {
|
||||
type?: IntegrityReportType;
|
||||
}
|
||||
|
||||
export interface IIntegrityDeleteReportsJob {
|
||||
reports: {
|
||||
id: string;
|
||||
assetId: string | null;
|
||||
fileAssetId: string | null;
|
||||
path: string;
|
||||
}[];
|
||||
}
|
||||
|
||||
export interface IIntegrityOrphanedFilesJob {
|
||||
type: 'asset' | 'asset_file';
|
||||
paths: string[];
|
||||
@@ -432,7 +441,8 @@ export type JobItem =
|
||||
| { name: JobName.IntegrityMissingFilesRefresh; data: IIntegrityPathWithReportJob }
|
||||
| { name: JobName.IntegrityChecksumFiles; data?: IIntegrityJob }
|
||||
| { name: JobName.IntegrityChecksumFilesRefresh; data?: IIntegrityPathWithChecksumJob }
|
||||
| { name: JobName.IntegrityReportDelete; data: IIntegrityDeleteReportJob };
|
||||
| { name: JobName.IntegrityDeleteReportType; data: IIntegrityDeleteReportTypeJob }
|
||||
| { name: JobName.IntegrityDeleteReports; data: IIntegrityDeleteReportsJob };
|
||||
|
||||
export type VectorExtension = (typeof VECTOR_EXTENSIONS)[number];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user