mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 10:37:07 +00:00
Add option to return project timestamp
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user