Update the User entity to be nullable (#371)
All checks were successful
Deploy To Stage / build (push) Successful in 10s
Deploy To Stage / deploy (push) Successful in 17s

- 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: #371
Reviewed-by: VylpesTester <tester@vylpes.com>
Co-authored-by: Ethan Lane <ethan@vylpes.com>
Co-committed-by: Ethan Lane <ethan@vylpes.com>
This commit is contained in:
Ethan Lane 2024-10-12 17:26:13 +01:00 committed by Vylpes
parent 480e496984
commit f4c02d3613

View file

@ -13,7 +13,7 @@ export default class User extends AppBaseEntity {
@Column() @Column()
Currency: number; Currency: number;
@Column() @Column({ nullable: true })
LastUsedDaily?: Date; LastUsedDaily?: Date;
public AddCurrency(amount: number) { public AddCurrency(amount: number) {