mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 10:27:09 +00:00
Fix getting project configuration data
This commit is contained in:
@@ -2,7 +2,7 @@ const { setSurvey, pool } = require('../connection');
|
||||
|
||||
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 config = res.rows.length == 1
|
||||
|
||||
Reference in New Issue
Block a user