Skip to content

Commit

Permalink
fix(rumour): include links in patch object
Browse files Browse the repository at this point in the history
  • Loading branch information
pheekus committed May 8, 2024
1 parent 50e2c17 commit 6ad5ffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Rumour/Rumour.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export class Rumour {
if (!Rumour.__isResource(value) || Rumour.__isCollection(value)) return patch;

const props = traverse(value).map(function () {
if (this.key?.startsWith('_')) this.delete(true);
if (this.key === '_embedded') return this.delete(true);
});

patch.set(value._links.self.href, props);
Expand Down

0 comments on commit 6ad5ffc

Please sign in to comment.