Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
shanalikhan committed Sep 2, 2019
1 parent 8c9a534 commit b313daa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/service/github.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,9 @@ export class GitHubService {

public async SaveGIST(gistObject: any): Promise<boolean> {
gistObject.gist_id = gistObject.id;
const promise = this.github.gists.update(gistObject);

// tslint:disable-next-line:comment-format
//TODO : use github.gists.update when issue is fixed.
const promise = this.github.request("PATCH /gists/:gist_id", gistObject);
const res = await promise.catch(err => {
if (String(err).includes("HttpError: Not Found")) {
return Commons.LogException(err, "Sync: Invalid Gist ID", true);
Expand Down

0 comments on commit b313daa

Please sign in to comment.