Attempt to fix missing status code output

This commit is contained in:
Joel Male
2020-08-26 10:31:06 +10:00
parent d4413d8be7
commit cfebc00721
9 changed files with 9 additions and 89 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
const fetch = require('node-fetch');
class Http {
async make(url: string, headers: string, body: string): Promise<any> {
make(url: string, headers: string, body: string): Promise<any> {
return new Promise(() => {
fetch(url, this.getOptions('post', headers, body));
});