Skip to content

Commit

Permalink
If ldp.remote.store is called with a dataset, use it to detect if res…
Browse files Browse the repository at this point in the history
…ource is remote
  • Loading branch information
srosset81 committed Nov 29, 2024
1 parent 6fcd5b1 commit 57e7fe7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/middleware/packages/ldp/services/remote/actions/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ module.exports = {
resourceUri = resource.id || resource['@id'];
}

if (!(await this.actions.isRemote({ resourceUri }, { parentCtx: ctx }))) {
if (!(await this.actions.isRemote({ resourceUri, dataset }, { parentCtx: ctx }))) {
throw new Error(
`The resourceUri param must be remote. Provided: ${resourceUri} (webId ${webId} / dataset ${ctx.meta.dataset}))`
`The resourceUri param must be remote. Provided: ${resourceUri} (webId ${webId} / dataset ${dataset}))`
);
}

Expand Down

0 comments on commit 57e7fe7

Please sign in to comment.