From f4c02d3613255ef68e07579bfaced9d65dd00b1b Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Sat, 12 Oct 2024 17:26:13 +0100 Subject: [PATCH] Update the User entity to be nullable (#371) - Update the user entity to be nullable in the typescript side - The migration script already did this, but if you have the `DB_SYNC` environment variable sync it then it doesn't get set to nullable #353 Reviewed-on: https://git.vylpes.xyz/External/card-drop/pulls/371 Reviewed-by: VylpesTester Co-authored-by: Ethan Lane Co-committed-by: Ethan Lane --- src/database/entities/app/User.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/database/entities/app/User.ts b/src/database/entities/app/User.ts index c3d8437..3a9018d 100644 --- a/src/database/entities/app/User.ts +++ b/src/database/entities/app/User.ts @@ -13,7 +13,7 @@ export default class User extends AppBaseEntity { @Column() Currency: number; - @Column() + @Column({ nullable: true }) LastUsedDaily?: Date; public AddCurrency(amount: number) {