Fix getting project configuration data

This commit is contained in:
D. Berge
2025-08-06 10:41:42 +02:00
parent 96db6b1376
commit f2df16fe55

View File

@@ -2,7 +2,7 @@ const { setSurvey, pool } = require('../connection');
async function get (projectId, path, opts = {}) { async function get (projectId, path, opts = {}) {
const text = `SELECT meta FROM public.projects WHERE pid = $1;`; const text = `SELECT meta data FROM public.projects WHERE pid = $1;`;
const res = await pool.query(text, [projectId]); const res = await pool.query(text, [projectId]);
const config = res.rows.length == 1 const config = res.rows.length == 1