wip
This commit is contained in:
16
local-sync/syncinbrowser.js
Normal file
16
local-sync/syncinbrowser.js
Normal file
@@ -0,0 +1,16 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user