mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-12-08 20:29:05 +00:00
chore(server): remove unused filename (#2517)
This commit is contained in:
@@ -20,7 +20,7 @@ describe(AssetService.name, () => {
|
||||
|
||||
describe(`handle asset upload`, () => {
|
||||
it('should process an uploaded video', async () => {
|
||||
const data = { asset: { type: AssetType.VIDEO } as AssetEntity, fileName: 'video.mp4' };
|
||||
const data = { asset: { type: AssetType.VIDEO } as AssetEntity };
|
||||
|
||||
await expect(sut.handleAssetUpload(data)).resolves.toBeUndefined();
|
||||
|
||||
@@ -33,7 +33,7 @@ describe(AssetService.name, () => {
|
||||
});
|
||||
|
||||
it('should process an uploaded image', async () => {
|
||||
const data = { asset: { type: AssetType.IMAGE } as AssetEntity, fileName: 'image.jpg' };
|
||||
const data = { asset: { type: AssetType.IMAGE } as AssetEntity };
|
||||
|
||||
await sut.handleAssetUpload(data);
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { AssetEntity, AssetType } from '@app/infra/entities';
|
||||
import { Inject } from '@nestjs/common';
|
||||
import { AuthUserDto } from '../auth';
|
||||
import { IAssetUploadedJob, IJobRepository, JobName } from '../job';
|
||||
import { IAssetJob, IJobRepository, JobName } from '../job';
|
||||
import { AssetCore } from './asset.core';
|
||||
import { IAssetRepository } from './asset.repository';
|
||||
import { MapMarkerDto } from './dto/map-marker.dto';
|
||||
@@ -17,7 +17,7 @@ export class AssetService {
|
||||
this.assetCore = new AssetCore(assetRepository, jobRepository);
|
||||
}
|
||||
|
||||
async handleAssetUpload(data: IAssetUploadedJob) {
|
||||
async handleAssetUpload(data: IAssetJob) {
|
||||
await this.jobRepository.queue({ name: JobName.GENERATE_JPEG_THUMBNAIL, data });
|
||||
|
||||
if (data.asset.type == AssetType.VIDEO) {
|
||||
|
||||
Reference in New Issue
Block a user