mirror of
https://github.com/immich-app/immich.git
synced 2026-03-06 18:17:27 +03:00
@@ -1,7 +1,7 @@
|
||||
import { BadRequestException } from '@nestjs/common';
|
||||
import { Stats } from 'node:fs';
|
||||
import { defaults, SystemConfig } from 'src/config';
|
||||
import { JOBS_LIBRARY_PAGINATION_SIZE } from 'src/constants';
|
||||
import { APP_MEDIA_LOCATION, JOBS_LIBRARY_PAGINATION_SIZE } from 'src/constants';
|
||||
import { mapLibrary } from 'src/dtos/library.dto';
|
||||
import { AssetType, CronJob, ImmichWorker, JobName, JobStatus } from 'src/enum';
|
||||
import { LibraryService } from 'src/services/library.service';
|
||||
@@ -1264,7 +1264,7 @@ describe(LibraryService.name, () => {
|
||||
});
|
||||
|
||||
it('should detect when import path is in immich media folder', async () => {
|
||||
const importPaths = ['upload/thumbs', `${process.cwd()}/xyz`, 'upload/library'];
|
||||
const importPaths = [APP_MEDIA_LOCATION + '/thumbs', `${process.cwd()}/xyz`, APP_MEDIA_LOCATION + '/library'];
|
||||
const library = factory.library({ importPaths });
|
||||
|
||||
mocks.storage.stat.mockResolvedValue({ isDirectory: () => true } as Stats);
|
||||
|
||||
Reference in New Issue
Block a user