mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
chore: lint
This commit is contained in:
+1
-1
@@ -608,7 +608,7 @@ export const utils = {
|
|||||||
'-s',
|
'-s',
|
||||||
'1',
|
'1',
|
||||||
'{}',
|
'{}',
|
||||||
'\;',
|
';',
|
||||||
]).promise;
|
]).promise;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -224,7 +224,7 @@ export class IntegrityService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (orphanedFiles.size) {
|
if (orphanedFiles.size > 0) {
|
||||||
await this.integrityReportRepository.create(
|
await this.integrityReportRepository.create(
|
||||||
[...orphanedFiles].map((path) => ({
|
[...orphanedFiles].map((path) => ({
|
||||||
type: IntegrityReportType.OrphanFile,
|
type: IntegrityReportType.OrphanFile,
|
||||||
@@ -494,7 +494,9 @@ export class IntegrityService extends BaseService {
|
|||||||
|
|
||||||
const results = await Promise.all(
|
const results = await Promise.all(
|
||||||
paths.map(async ({ reportId, path, checksum }) => {
|
paths.map(async ({ reportId, path, checksum }) => {
|
||||||
if (!checksum) return reportId;
|
if (!checksum) {
|
||||||
|
return reportId;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const hash = createHash('sha1');
|
const hash = createHash('sha1');
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
let { data }: Props = $props();
|
let { data }: Props = $props();
|
||||||
|
|
||||||
let integrityReport: MaintenanceIntegrityReportSummaryResponseDto | undefined = $state(data.integrityReport);
|
let integrityReport: MaintenanceIntegrityReportSummaryResponseDto = $state(data.integrityReport);
|
||||||
|
|
||||||
const TYPES: IntegrityReportType[] = [
|
const TYPES: IntegrityReportType[] = [
|
||||||
IntegrityReportType.OrphanFile,
|
IntegrityReportType.OrphanFile,
|
||||||
|
|||||||
Reference in New Issue
Block a user