Skip to content

Commit

Permalink
fix(user): fix bad premium value
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuher committed Dec 15, 2024
1 parent 78d8f03 commit 06d06ac
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"ssl": true
},
"configurations": {
"production": {
"buildTarget": "RetroSki:build:production"
Expand Down
2 changes: 1 addition & 1 deletion src/app/common/models/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ export class User {

public static buildFromRecord(record: RecordModel): User {
// biome-ignore lint/complexity/useLiteralKeys: <explanation>
return new User(record.id, record['name'], record['email'], record['premium'] === 'true');
return new User(record.id, record['name'], record['email'], record['premium']);
}
}
1 change: 1 addition & 0 deletions src/app/pages/ride-online/ride-online.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export class RideOnlineComponent extends Destroyable {
super();

this.user = this.authService.getUser();
console.log(this.user);
this.userServers = toSignal(this.serverService.getUserServers$());
}

Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.development.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import PocketBase from 'pocketbase';

export const environment = {
pb: new PocketBase('http://localhost:8090')
pb: new PocketBase('https://home-eleven.duckdns.org')
};

0 comments on commit 06d06ac

Please sign in to comment.