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:
parent
4731f271e2
commit
aa7f486259
2 changed files with 2 additions and 2 deletions
|
@ -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[];
|
||||||
}
|
}
|
||||||
|
|
|
@ -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[];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue