newStaffLDB-API #48

Merged
fred.boniface merged 85 commits from newStaffLDB-API into main 2023-10-03 21:35:03 +01:00
1 changed files with 4 additions and 2 deletions
Showing only changes of commit e38946d4df - Show all commits

View File

@ -1,5 +1,5 @@
/* eslint-disable no-useless-escape */
const axios = require("axios");
//const axios = require("axios");
import { logger } from "../utils/logger.utils";
const issueLabels = {
@ -26,8 +26,10 @@ async function sendToGitea(body) {
headers: {
Authorization: key,
},
body: body,
};
var res = await axios.post(url, body, opts);
//var res = await axios.post(url, body, opts);
const res = await fetch(url, opts);
/* Need to read the output from the POST and pass the result upwards to the
client.*/
if (res.status == 201) {