Skip to content

Commit 0bb209a

Browse files
authored
Merge pull request #230 from SciCatProject/fix-one-dataset-bug
add slash for datasets findById
2 parents 6e39751 + 1f89423 commit 0bb209a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/scicat-service.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ exports.Dataset = class {
3333
//console.log(">>> Dataset.findById pid", encodedId);
3434
//console.log(">>> Dataset.findById filter", jsonFilter);
3535
const url = jsonFilter
36-
? baseUrl + "/api/v4/datasets/public" + encodedId + "?filter=" + jsonFilter
37-
: baseUrl + "/api/v4/datasets/public" + encodedId;
36+
? baseUrl + "/api/v4/datasets/public/" + encodedId + "?filter=" + jsonFilter
37+
: baseUrl + "/api/v4/datasets/public/" + encodedId;
3838
const res = await superagent.get(url);
3939
return JSON.parse(res.text);
4040
}

0 commit comments

Comments
 (0)