mirror of
https://github.com/originalmk/skrytka-app.git
synced 2025-01-18 08:19:17 +00:00
Multiline string fix
This commit is contained in:
parent
4819d4f2d1
commit
8ca399167e
4
app.js
4
app.js
@ -303,8 +303,8 @@ app.get('/quiz-pages', async (req, res) => {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
let quizData = await db.any(
|
let quizData = await db.any(
|
||||||
'SELECT side_id AS "sideID", side_image_path AS "sideImagePath", \
|
`SELECT side_id AS "sideID", side_image_path AS "sideImagePath",
|
||||||
cache_id AS "cacheID", cache_rectangle as "cacheRectangle", cache_name as "cacheName" FROM get_quiz_data_for_truck($1)', [fireTruck]);
|
cache_id AS "cacheID", cache_rectangle as "cacheRectangle", cache_name as "cacheName" FROM get_quiz_data_for_truck($1)`, [fireTruck]);
|
||||||
|
|
||||||
quizData = quizData.reduce((acc, curr) => {
|
quizData = quizData.reduce((acc, curr) => {
|
||||||
const sideID = curr.sideID;
|
const sideID = curr.sideID;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user