Skip to content

Commit 6075bc9

Browse files
committed
feat(HERO): fix hero vote refresh data and readme
1 parent 35d71ad commit 6075bc9

File tree

6 files changed

+5
-5
lines changed

6 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<img src="https://media.giphy.com/media/BIql9p3KQWYdjq4Sxe/giphy.gif" alt="Demo example"/>
1515
<br>
1616
<br>
17-
<a href="https://ismaestro.github.io/angular-example-app/">DEMO HERE</a>
17+
<a href="https://angular-example-app.onrender.com/">DEMO HERE</a>
1818
</p>
1919
</p>
2020

src/app/modules/auth/shared/auth-mutations.graphql.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export const updateUserMutation = gql`
4141
updateUser(data: { firstname: $firstname, language: $language }) {
4242
id
4343
firstname
44+
email
4445
language
4546
}
4647
}

src/app/modules/hero/shared/hero.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export class HeroService {
4949
field: options.orderBy.field,
5050
skip: options.skip,
5151
},
52+
fetchPolicy: 'network-only',
5253
})
5354
.pipe(
5455
map((response: unknown) => {

src/app/modules/user/pages/dashboard/dashboard-page.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export class DashboardPageComponent implements OnInit, OnDestroy {
9696
.subscribe(heroes => {
9797
if (heroes) {
9898
this.publicHeroes = heroes;
99-
this.changeDetectorRef.markForCheck();
99+
this.changeDetectorRef.detectChanges();
100100
}
101101
});
102102
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
export const environment = {
22
production: true,
33
graphqlHost: 'https://nestjs-example-app.onrender.com/',
4-
host: 'ismaestro.github.io',
5-
domain: 'https://ismaestro.github.io/angular-example-app',
4+
domain: 'https://angular-example-app.onrender.com',
65
};

src/environments/environment.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ export const environment = {
66
production: false,
77
// graphqlHost: 'http://localhost:3000/', // if you are running nestjs-example-app project
88
graphqlHost: 'https://nestjs-example-app.onrender.com/',
9-
host: 'localhost',
109
domain: 'http://localhost:4200',
1110
};
1211

0 commit comments

Comments
 (0)