Add cron job to add coins to a user every 30 minutes #219

Merged
Vylpes merged 7 commits from feature/204-coins-cron into develop 2024-05-17 20:57:01 +01:00
Showing only changes of commit 0504598518 - Show all commits

View file

@ -17,10 +17,6 @@ export default class User extends AppBaseEntity {
this.Currency += amount;
}
public AddCurrency(amount: number) {
this.Currency += amount;
}
public RemoveCurrency(amount: number): boolean {
if (this.Currency < amount) return false;