Update the User entity to be nullable ()

- 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



Reviewed-on: 
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()
Currency: number;
@Column()
@Column({ nullable: true })
LastUsedDaily?: Date;
public AddCurrency(amount: number) {