fix(server): change the createdAt and modifiedAt to the correct type in database (#591)

* Added migration files

* Remove type casting in sql query
This commit is contained in:
Alex
2022-09-05 20:51:01 -05:00
committed by GitHub
parent 7f6837c751
commit b081eda76f
3 changed files with 34 additions and 13 deletions

View File

@@ -32,10 +32,10 @@ export class AssetEntity {
@Column({ type: 'varchar', nullable: true, default: '' })
encodedVideoPath!: string;
@Column()
@Column({ type: 'timestamptz' })
createdAt!: string;
@Column()
@Column({ type: 'timestamptz' })
modifiedAt!: string;
@Column({ type: 'boolean', default: false })