From 406c152d6af48457c779ea1f09e67dac5c2fda5f Mon Sep 17 00:00:00 2001 From: tariqksoliman Date: Wed, 20 Sep 2023 14:33:12 -0700 Subject: [PATCH] Fix draw upload webhook not populating geojson field --- API/Backend/Draw/routes/files.js | 2 +- API/Backend/Shortener/routes/shortener.js | 1 + config/css/config.css | 11 ----------- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/API/Backend/Draw/routes/files.js b/API/Backend/Draw/routes/files.js index f0d4f4cf..4f990956 100644 --- a/API/Backend/Draw/routes/files.js +++ b/API/Backend/Draw/routes/files.js @@ -240,7 +240,7 @@ router.post("/make", function (req, res, next) { }; // Insert new entry into the history table Filehistories.create(newHistoryEntry) - .then((created) => { + .then((createdHistory) => { res.send({ status: "success", message: "Successfully made a new file from geojson.", diff --git a/API/Backend/Shortener/routes/shortener.js b/API/Backend/Shortener/routes/shortener.js index 4134a65c..3848d4ba 100644 --- a/API/Backend/Shortener/routes/shortener.js +++ b/API/Backend/Shortener/routes/shortener.js @@ -16,6 +16,7 @@ const UrlShortener_s = us.sequelize; * @param text *optional* */ router.post("/shorten", function (req, res, next) { + console.log("Received Body from Webhook:", req.body); if (process.env.DISABLE_LINK_SHORTENER == "true") { res.send({ status: "failure", diff --git a/config/css/config.css b/config/css/config.css index fa9b8e5d..00eaac40 100644 --- a/config/css/config.css +++ b/config/css/config.css @@ -290,17 +290,6 @@ body { #manage_webhooks:hover { color: #08aeea; } -#manage_webhooks { - height: 30px; - width: calc(100% - 16px); - line-height: 30px; - margin: 4px 8px; - font-size: 12px; - color: #ddd; -} -#manage_webhooks:hover { - color: #5ea1ed; -} textarea { resize: vertical;