Fix issues
This commit is contained in:
parent
aebee54562
commit
2f76efed2e
2 changed files with 7 additions and 1 deletions
|
|
@ -13,6 +13,12 @@ const fixUserData = (user: IUser) => {
|
|||
if (!user.aiCost) {
|
||||
user.aiCost = 0;
|
||||
}
|
||||
if (!user.lastExperienceGainTimestamp) {
|
||||
user.lastExperienceGainTimestamp = 0;
|
||||
}
|
||||
if (!user.lastMoneyGainTimestamp) {
|
||||
user.lastMoneyGainTimestamp = 0;
|
||||
}
|
||||
};
|
||||
|
||||
const getUserById = (userId: string): IUser => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue