From 8300c59dce7599bcd7b68c047cc9c12cc3d9da42 Mon Sep 17 00:00:00 2001 From: SachiniSiriwardene Date: Wed, 4 Dec 2024 09:43:47 +0530 Subject: [PATCH] Revert "Fix graphql tryout loading issue" --- src/app.js | 1 - src/db/sequelize.js | 1 - src/pages/{styles => tryout}/async-tryout.css | 0 src/pages/tryout/page.hbs | 5 ++--- src/services/apiMetadataService.js | 6 +++--- src/utils/constants.js | 1 - 6 files changed, 5 insertions(+), 9 deletions(-) rename src/pages/{styles => tryout}/async-tryout.css (100%) diff --git a/src/app.js b/src/app.js index 128ce31..e3257ec 100644 --- a/src/app.js +++ b/src/app.js @@ -76,7 +76,6 @@ passport.deserializeUser((user, done) => { app.use(constants.ROUTE.STYLES, express.static(path.join(process.cwd(), filePrefix + 'styles'))); app.use(constants.ROUTE.IMAGES, express.static(path.join(process.cwd(), filePrefix + 'images'))); -app.use(constants.ROUTE.INTERNAL_STYLES, express.static(path.join(process.cwd(), 'src/pages/styles'))); //backend routes app.use(constants.ROUTE.DEV_PORTAL, devportalRoute); diff --git a/src/db/sequelize.js b/src/db/sequelize.js index 55d876d..8311640 100644 --- a/src/db/sequelize.js +++ b/src/db/sequelize.js @@ -26,7 +26,6 @@ const sequelize = new Sequelize( { host: config.db.host, dialect: config.db.dialect, - logging: false, pool: { max: 5, min: 0, diff --git a/src/pages/styles/async-tryout.css b/src/pages/tryout/async-tryout.css similarity index 100% rename from src/pages/styles/async-tryout.css rename to src/pages/tryout/async-tryout.css diff --git a/src/pages/tryout/page.hbs b/src/pages/tryout/page.hbs index 0411cca..e68469a 100644 --- a/src/pages/tryout/page.hbs +++ b/src/pages/tryout/page.hbs @@ -11,7 +11,7 @@ {{else if (eq apiType "AsyncAPI")}} - +
@@ -37,10 +37,9 @@