Skip to content
Snippets Groups Projects
Commit 463c9223b7c3 authored by Frank Bessou's avatar Frank Bessou :spider_web:
Browse files

style: re-indent rql in update method

parent bf5c2206ac55
No related branches found
No related tags found
No related merge requests found
...@@ -209,12 +209,12 @@ ...@@ -209,12 +209,12 @@
const queries: RqlQuery[] = [ const queries: RqlQuery[] = [
[ [
` `
SET ${[...attributeUpdates, ...relationUpdates].join( SET
", " ${[...attributeUpdates, ...relationUpdates].join(", ")}
)} WHERE ${restrictionsUpdate.join(", ")} WHERE
`, ${restrictionsUpdate.join(", ")}`,
{}, {},
], ],
]; ];
if (relationUpdates.length !== 0) { if (relationUpdates.length !== 0) {
queries.unshift([ queries.unshift([
...@@ -216,11 +216,13 @@ ...@@ -216,11 +216,13 @@
{}, {},
], ],
]; ];
if (relationUpdates.length !== 0) { if (relationUpdates.length !== 0) {
queries.unshift([ queries.unshift([
`DELETE ${relationUpdates.join( `
", " DELETE
)} WHERE X is ${resource}, X eid ${id}`, ${relationUpdates.join(", ")}
WHERE
X is ${resource}, X eid ${id}`,
{}, {},
]); ]);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment