chore: remove exif entity (#17499)

This commit is contained in:
Daniel Dietzler
2025-04-10 18:36:29 +02:00
committed by GitHub
parent 8aea07b750
commit 7a1e8ce6d8
10 changed files with 44 additions and 76 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
import { ApiProperty } from '@nestjs/swagger';
import { ExifEntity } from 'src/entities/exif.entity';
import { Exif } from 'src/database';
export class ExifResponseDto {
make?: string | null = null;
@@ -28,7 +28,7 @@ export class ExifResponseDto {
rating?: number | null = null;
}
export function mapExif(entity: ExifEntity): ExifResponseDto {
export function mapExif(entity: Exif): ExifResponseDto {
return {
make: entity.make,
model: entity.model,
@@ -55,7 +55,7 @@ export function mapExif(entity: ExifEntity): ExifResponseDto {
};
}
export function mapSanitizedExif(entity: ExifEntity): ExifResponseDto {
export function mapSanitizedExif(entity: Exif): ExifResponseDto {
return {
fileSizeInByte: entity.fileSizeInByte ? Number.parseInt(entity.fileSizeInByte.toString()) : null,
orientation: entity.orientation,