Fix metadata retrieval from preplots

This commit is contained in:
D. Berge
2020-10-23 11:01:38 +02:00
parent 8a0bcc5cb4
commit 46d489c91f

View File

@@ -48,7 +48,7 @@ async function put (projectId, payload, opts = {}) {
await client.query(text, values);
} else if (rec.point && rec.line) {
const table = tables.points[type][0]
const table = tables.lines[type][0]
const text = `
UPDATE ${table}
SET meta = jsonb_set(meta, $1, $2)