This commit is contained in:
Joel Male 2022-11-10 22:45:08 +10:00
parent 9650c71451
commit 60e01f3e64

View File

@ -1,4 +1,4 @@
const fetch = require('node-fetch') import fetch from 'node-fetch';
var https = require('https') var https = require('https')
class Http { class Http {
@ -12,7 +12,7 @@ class Http {
fetch( fetch(
url, url,
this.getOptions('post', headers, body, ignoreCertificate) this.getOptions('post', headers, body, ignoreCertificate)
).then((res: Response) => resolve(res)) ).then((res: any) => resolve(res))
}) })
} }