Skip to content

Commit

Permalink
Fix draw upload webhook not populating geojson field
Browse files Browse the repository at this point in the history
  • Loading branch information
tariqksoliman committed Sep 20, 2023
1 parent a2a7e59 commit 406c152
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion API/Backend/Draw/routes/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
1 change: 1 addition & 0 deletions API/Backend/Shortener/routes/shortener.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
11 changes: 0 additions & 11 deletions config/css/config.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 406c152

Please sign in to comment.