diff --git a/packages/api/cms-api/src/dam/files/files.service.ts b/packages/api/cms-api/src/dam/files/files.service.ts index bce2390cd0..63caebe39e 100644 --- a/packages/api/cms-api/src/dam/files/files.service.ts +++ b/packages/api/cms-api/src/dam/files/files.service.ts @@ -225,6 +225,10 @@ export class FilesService { return withFilesSelect(this.selectQueryBuilder(), { imageId }).getSingleResult(); } + async findOneByImportSourceId(importSourceId: string): Promise { + return this.filesRepository.findOne({ importSourceId }); + } + async create({ folderId, ...data }: CreateFileInput & { copyOf?: FileInterface }): Promise { const folder = folderId ? await this.foldersService.findOneById(folderId) : undefined; return this.save(