Skip to content

Commit

Permalink
fixed error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Olerinskaia committed Dec 5, 2024
1 parent 89e05fa commit c51e997
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/server/endPoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,6 @@ module.exports = function (app, db, redisClient) {

app.post('/api/addquery', (req, res) => {
let query = req.body.params
console.log('body params', query)
if (!query.id || query.account_id !== req.account_id) {
handleAddQuery(req, res, db)
} else {
Expand Down Expand Up @@ -977,9 +976,7 @@ module.exports = function (app, db, redisClient) {
})
app.get('/api/getwidgetconfig/:id', async (req, res) => {
const widgetConfig = await redisClient.get(req.params.id)
console.log('widgetConfig', widgetConfig)
if (widgetConfig !== null) {
console.log('there is some widgetconfig')
res.status(200).send(JSON.parse(widgetConfig))
} else {
res.sendStatus(400)
Expand All @@ -999,7 +996,6 @@ module.exports = function (app, db, redisClient) {
app.get('/api/bygraphqlqueryid/:queryid', async (req, res) => {
const query = await redisClient.get(req.params.queryid)
if (query !== null) {
console.log('there is some query')
res.status(200).send(JSON.parse(query))
} else {
res.sendStatus(400)
Expand Down

0 comments on commit c51e997

Please sign in to comment.