Backend: Working on issue API

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-01-30 21:30:03 +00:00
parent b21ac8d562
commit a0de55274d
1 changed files with 2 additions and 4 deletions

View File

@ -4,13 +4,11 @@ async function sendToGitea(body) {
let key = process.env.OWL_GIT_ISSUEBOT let key = process.env.OWL_GIT_ISSUEBOT
let url = process.env.OWL_GIT_APIENDPOINT let url = process.env.OWL_GIT_APIENDPOINT
let options = { let options = {
method: 'post',
timeout: 2000,
headers: { headers: {
Accept: 'application/json',
Authorization: key Authorization: key
}, },
data: body data: body,
withCredantials: true
} }
await axios.post(url, options) await axios.post(url, options)