1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-09 13:26:47 +01:00

closure begone

This commit is contained in:
mertalev 2024-12-19 20:04:44 -05:00
parent 4731f271e2
commit aa7f486259
No known key found for this signature in database
GPG key ID: 3A2B5BFC678DBC80
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@ export class FaceSearchEntity {
@Column({ @Column({
type: 'float4', type: 'float4',
array: true, array: true,
transformer: { from: (v) => JSON.parse(v), to: (v) => `[${v}]` }, transformer: { from: JSON.parse, to: (v) => `[${v}]` },
}) })
embedding!: number[]; embedding!: number[];
} }

View file

@ -11,6 +11,6 @@ export class SmartSearchEntity {
assetId!: string; assetId!: string;
@Index('clip_index', { synchronize: false }) @Index('clip_index', { synchronize: false })
@Column({ type: 'float4', array: true, transformer: { from: (v) => JSON.parse(v), to: (v) => v } }) @Column({ type: 'float4', array: true, transformer: { from: JSON.parse, to: (v) => v } })
embedding!: number[]; embedding!: number[];
} }