fix(server): use jasonnnnnnnnnb (#9539)

This commit is contained in:
Jason Rasmussen 2024-05-16 17:24:54 -04:00 committed by GitHub
parent d8eca168ca
commit 936a46b4ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 25 additions and 1 deletions

View file

@ -6,7 +6,7 @@ export class SystemMetadataEntity<T extends keyof SystemMetadata = SystemMetadat
@PrimaryColumn({ type: 'varchar' })
key!: T;
@Column({ type: 'jsonb', default: '{}', transformer: { to: JSON.stringify, from: JSON.parse } })
@Column({ type: 'jsonb' })
value!: SystemMetadata[T];
}