From b0cea4c091c881158f94724d4d2cdf23d86909cd Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Mon, 12 Oct 2020 17:56:40 +0100 Subject: [PATCH] Updating formatting. --- .../userInterface/EventsEditor/actions/SaveRow.svelte | 4 ++-- packages/server/src/api/controllers/table.js | 4 +--- packages/server/src/db/utils.js | 6 +----- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/packages/builder/src/components/userInterface/EventsEditor/actions/SaveRow.svelte b/packages/builder/src/components/userInterface/EventsEditor/actions/SaveRow.svelte index ed97d856ac..4917336e96 100644 --- a/packages/builder/src/components/userInterface/EventsEditor/actions/SaveRow.svelte +++ b/packages/builder/src/components/userInterface/EventsEditor/actions/SaveRow.svelte @@ -88,8 +88,8 @@
{#if idFields.length === 0}
- Update row can only be used within a component that provides data, such - as a List + Update row can only be used within a component that provides data, such as + a List
{:else} diff --git a/packages/server/src/api/controllers/table.js b/packages/server/src/api/controllers/table.js index df3acaff8a..f6fb2b7627 100644 --- a/packages/server/src/api/controllers/table.js +++ b/packages/server/src/api/controllers/table.js @@ -116,9 +116,7 @@ exports.destroy = async function(ctx) { include_docs: true, }) ) - await db.bulkDocs( - rows.rows.map(row => ({ ...row.doc, _deleted: true })) - ) + await db.bulkDocs(rows.rows.map(row => ({ ...row.doc, _deleted: true }))) // update linked rows await linkRows.updateLinks({ diff --git a/packages/server/src/db/utils.js b/packages/server/src/db/utils.js index d4027df528..f44173bb25 100644 --- a/packages/server/src/db/utils.js +++ b/packages/server/src/db/utils.js @@ -63,11 +63,7 @@ exports.generateTableID = () => { * @param {object} otherProps Any other properties to add to the request. * @returns {object} Parameters which can then be used with an allDocs request. */ -exports.getRowParams = ( - tableId = null, - rowId = null, - otherProps = {} -) => { +exports.getRowParams = (tableId = null, rowId = null, otherProps = {}) => { if (tableId == null) { return getDocParams(DocumentTypes.ROW, null, otherProps) } else {