From f8df126c218d4f1056c78b6223ab414f56e2afed Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Fri, 22 May 2020 13:18:49 -0400 Subject: [PATCH] correctly use events from common package --- src/routes.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/routes.js b/src/routes.js index f3661c0f..60134101 100644 --- a/src/routes.js +++ b/src/routes.js @@ -11,6 +11,9 @@ const logger = require("winston"); const httpsAgent = require("https"); const responseTime = require("response-time"); const uuid = require("uuid/v4"); +const Common = require('shock-common') + + const getListPage = require("../utils/paginate"); const auth = require("../services/auth/auth"); const FS = require("../utils/fs"); @@ -1576,7 +1579,7 @@ module.exports = async ( }); }); - const GunEvent = require('../services/gunDB/event-constants') + const GunEvent = Common.Constants.Event const Events = require('../services/gunDB/contact-api/events') const Key = require('../services/gunDB/contact-api/key') const {timeout5} = require('../services/gunDB/contact-api/utils')