Skip to content

Commit

Permalink
fix up parsing of result from getting current revision
Browse files Browse the repository at this point in the history
  • Loading branch information
jdeepee committed Oct 13, 2023
1 parent 9f687e8 commit d20d95e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions bootstrap-languages/centralized-p-diff-sync/linksAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,14 @@ export class LinkAdapter implements LinkSyncAdapter {
linkLanguageUUID: this.languageUid,
did: this.me
})
if (result.status === 200) {
result = result.data;
} else {
console.error("Error in currentRevision call");
console.error("Got status", result.status);
result = null;
}
console.log("Current revision returned with result");
console.dir(result);
} catch (e) {
console.log("Error in currentRevision call", e);
result = null;
Expand Down Expand Up @@ -285,7 +291,8 @@ export class LinkAdapter implements LinkSyncAdapter {
linkLanguageUUID: this.languageUid,
did: this.me
});
console.log("Added agent record with result", result);
console.log("Added agent record with result");
console.dir(result.data);
}
}
}
Expand Down

0 comments on commit d20d95e

Please sign in to comment.