Skip to content

Commit

Permalink
feat: make uptime request network-only
Browse files Browse the repository at this point in the history
  • Loading branch information
beeman committed Sep 29, 2020
1 parent 30635e7 commit eceaf7d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export class <%= classify(projectName) %>Service {
constructor(protected readonly sdk: ApolloAngularSDK) {}

public uptime(): Observable<number> {
return this.sdk.uptime().pipe(map((res) => res?.data?.uptime))
return this.sdk.uptime(null, { fetchPolicy: 'network-only' }).pipe(map((res) => res?.data?.uptime))
}

public intercomPub(type: string, scope: string, payload: any): Observable<IntercomMessage> {
Expand Down

0 comments on commit eceaf7d

Please sign in to comment.