refactor: Change balance type to bigdecimal for better precision
This commit is contained in:
parent
9c5e05f29d
commit
aef0f09d09
5 changed files with 23 additions and 7 deletions
|
@ -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) => {
|
||||
|
|
Reference in a new issue