Skip to content

Commit 38772b8

Browse files
committed
fixed orcid work service
1 parent 353ea10 commit 38772b8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

jsr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mycore/js-common",
3-
"version": "0.0.2",
3+
"version": "0.0.3",
44
"exports": {
55
"./i18n": "./src/i18n/index.ts",
66
"./access-key": "./src/access-key/index.ts",

src/orcid/orcid-work.service.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,10 @@ export class OrcidWorkService {
7878
const response = await fetch(
7979
this.getUrl(`member/${orcid}/works/object/${objectId}`),
8080
{
81-
...this.getAuthHeaders(),
8281
method: 'POST',
82+
headers: {
83+
...this.getAuthHeaders(),
84+
},
8385
}
8486
);
8587
ensureOk(response);

0 commit comments

Comments
 (0)