refactor: Change balance type to bigdecimal for better precision

This commit is contained in:
Phan Huy Tran 2025-02-26 11:03:12 +01:00
commit aef0f09d09
5 changed files with 23 additions and 7 deletions

View file

@ -21,10 +21,11 @@ export class UserService {
});
}
public async getOrCreateUser(userProfile: KeycloakProfile) {
public async getOrCreateUser(userProfile: KeycloakProfile): Promise<User | undefined | null> {
if (userProfile.id == null) {
return;
return null;
}
return await this.getUser(userProfile.id)
.toPromise()
.then(async (user) => {