16 lines
579 B
JavaScript
16 lines
579 B
JavaScript
const SyncHelper = {
|
|
async send() {
|
|
await fetch('https://test.medreport.ee/api/order/medipost-test-response', {
|
|
method: "POST",
|
|
headers: { "x-jobs-api-key": "fd26ec26-70ed-11f0-9e95-431ac3b15a84", "content-type": "application/json" },
|
|
body: JSON.stringify({ "medusaOrderId": "order_01K2F3KC87NTMZX04T3KDZAQ69" }),
|
|
});
|
|
},
|
|
async sync() {
|
|
await fetch('https://test.medreport.ee/api/job/sync-analysis-results', {
|
|
method: "POST",
|
|
headers: { "x-jobs-api-key": "fd26ec26-70ed-11f0-9e95-431ac3b15a84" },
|
|
});
|
|
},
|
|
};
|
|
SyncHelper.sync() |