Add cron job to add coins to a user every 30 minutes #219
1 changed files with 0 additions and 4 deletions
|
@ -17,10 +17,6 @@ export default class User extends AppBaseEntity {
|
||||||
this.Currency += amount;
|
this.Currency += amount;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AddCurrency(amount: number) {
|
|
||||||
this.Currency += amount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public RemoveCurrency(amount: number): boolean {
|
public RemoveCurrency(amount: number): boolean {
|
||||||
if (this.Currency < amount) return false;
|
if (this.Currency < amount) return false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue