From 6e16b36d490760137483326fc31b4e9d067efeee Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Wed, 15 Jan 2020 16:57:27 -0700 Subject: [PATCH] Fix invalid syntax for node in server ShelfController --- server/controllers/shelf.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/controllers/shelf.js b/server/controllers/shelf.js index 4569d2c..41ee7af 100644 --- a/server/controllers/shelf.js +++ b/server/controllers/shelf.js @@ -1,4 +1,4 @@ -import fetch from 'node-fetch'; +const fetch = require('node-fetch'); class ShelfController { constructor (shelfModel, shelfItemModel) { @@ -24,7 +24,7 @@ class ShelfController { return true; } - async static CheckExternalDomainForShelf (domain, shelfId) { + static async CheckExternalDomainForShelf (domain, shelfId) { const response = await fetch(`https://${domain}/api/shelf/get/${shelfId}/`).then(response => response.json()); // validate response somehow return response;