mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 11:37:08 +00:00
Restrict patching actions to vessel lines only.
These are the only type of lines returned by list().
This commit is contained in:
@@ -4,9 +4,9 @@ async function patch (projectId, line, payload, opts = {}) {
|
||||
const client = await setSurvey(projectId);
|
||||
|
||||
const patchables = {
|
||||
"remarks": "UPDATE preplot_lines SET remarks = $2 WHERE line = $1;",
|
||||
"meta": "UPDATE preplot_lines SET meta = $2 WHERE line = $1;",
|
||||
"ntba": "UPDATE preplot_lines SET ntba = $2 WHERE line = $1;",
|
||||
"remarks": "UPDATE preplot_lines SET remarks = $2 WHERE line = $1 AND class ='V';",
|
||||
"meta": "UPDATE preplot_lines SET meta = $2 WHERE line = $1 AND class ='V';",
|
||||
"ntba": "UPDATE preplot_lines SET ntba = $2 WHERE line = $1 AND class ='V';",
|
||||
};
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user