mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
refactor!: migrate class-validator to zod (#26597)
This commit is contained in:
@@ -35,7 +35,7 @@ export class AssetMetadataTable {
|
||||
key!: AssetMetadataKey | string;
|
||||
|
||||
@Column({ type: 'jsonb' })
|
||||
value!: object;
|
||||
value!: Record<string, unknown>;
|
||||
|
||||
@UpdateIdColumn({ index: true })
|
||||
updateId!: Generated<string>;
|
||||
|
||||
@@ -43,7 +43,7 @@ export class MemoryTable {
|
||||
type!: MemoryType;
|
||||
|
||||
@Column({ type: 'jsonb' })
|
||||
data!: object;
|
||||
data!: Record<string, unknown>;
|
||||
|
||||
/** unless set to true, will be automatically deleted in the future */
|
||||
@Column({ type: 'boolean', default: false })
|
||||
|
||||
Reference in New Issue
Block a user