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: #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:
parent
480e496984
commit
f4c02d3613
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue