Skip to content

Commit

Permalink
fix for latest assertion id for v6
Browse files Browse the repository at this point in the history
  • Loading branch information
brkagithub committed Dec 19, 2024
1 parent f19fbcc commit c72029d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/triple-store/implementation/ot-triple-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,9 @@ class OtTripleStore {

const data = await this.select(repository, query);

const latestAssertionId = data?.replace('assertion:', '');
const fullAssertionId = data?.[0]?.assertionId;

const latestAssertionId = fullAssertionId?.replace('assertion:', '');

return latestAssertionId;
}
Expand Down

0 comments on commit c72029d

Please sign in to comment.