fix: removed url parsing

This commit is contained in:
Wyatt Johnson
2018-11-06 13:02:20 -07:00
parent 888a61f895
commit 17a801d6d2
@@ -1,4 +1,3 @@
const { URL } = require('url');
const fetch = require('node-fetch');
const {
API_ENDPOINT,
@@ -14,7 +13,7 @@ const { ROOT_URL } = require('config');
// Use the ROOT_URL to grab the domain to construct a communityID for the
// feedback.
const communityId = `Coral:${new URL(ROOT_URL).domain}`;
const communityId = `Coral:${ROOT_URL}`;
async function send(method, body) {
// Perform the fetch.