Skip to content

Commit 922a4ca

Browse files
committed
fix sql
1 parent 8aa016c commit 922a4ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server/endPoints.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ module.exports = function (app, db, redisClient) {
299299
GROUP BY query_id
300300
) t ON q.id = t.query_id
301301
LEFT JOIN (
302-
SELECT id as noid, count (1) cnt
302+
SELECT id as noid, count(1) cnt
303303
FROM query_logs
304304
WHERE success = 1
305305
GROUP BY id
@@ -308,7 +308,7 @@ module.exports = function (app, db, redisClient) {
308308
SELECT w.id as w_id, w.widget_id, w.displayed_data, w.query_id, w.config, w.active, w.data_type
309309
FROM widgets w
310310
WHERE id IN (
311-
SELECT MAX (id) AS id
311+
SELECT MAX(id) AS id
312312
FROM widgets
313313
GROUP BY query_id
314314
)

0 commit comments

Comments
 (0)