Add option to return project timestamp

This commit is contained in:
D. Berge
2025-08-22 00:02:05 +02:00
parent 87aa78af00
commit a68000eac6

View File

@@ -1,8 +1,14 @@
const { setSurvey, pool } = require('../connection'); const { setSurvey, pool } = require('../connection');
async function get () { async function get (opts = {}) {
const select = opts.timestamps
? "last_project_update(pid) tstamp,"
: "";
const text = ` const text = `
SELECT SELECT
${select}
pid, pid,
name, name,
schema, schema,