refactor: migrate asset job status entity (#17560)

This commit is contained in:
Daniel Dietzler 2025-04-14 12:21:56 +02:00 committed by GitHub
parent 8b00578c7b
commit 184e142d87
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 15 deletions

View file

@ -1,5 +1,5 @@
import { Selectable } from 'kysely';
import { Exif as DatabaseExif } from 'src/db';
import { AssetJobStatus as DatabaseAssetJobStatus, Exif as DatabaseExif } from 'src/db';
import { AssetEntity } from 'src/entities/asset.entity';
import {
AlbumUserRole,
@ -249,6 +249,10 @@ export type AssetFace = {
person?: Person | null;
};
export type AssetJobStatus = Selectable<DatabaseAssetJobStatus> & {
asset: AssetEntity;
};
const userColumns = ['id', 'name', 'email', 'profileImagePath', 'profileChangedAt'] as const;
export const columns = {