@sap_oss/wdio-qmate-service
Version:
[](https://api.reuse.software/info/github.com/SAP/wdio-qmate-service)[](http
29 lines • 907 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.updateQmateUsage = updateQmateUsage;
const undici_1 = require("undici");
const constants_1 = require("./constants");
async function updateQmateUsage(id, usageData) {
const urlUsage = `${constants_1.STATS_SERVER_URL}/api/usage/qmate/${id}`;
try {
const response = await (0, undici_1.fetch)(urlUsage, {
method: "PUT",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify(usageData),
dispatcher: new undici_1.Agent({
connect: {
rejectUnauthorized: false,
}
})
});
if (!response.ok) {
// Intentionally ignore
}
}
catch (error) {
// Intentionally ignore
}
}
//# sourceMappingURL=updateUsage.js.map