From 6c06fd2a16349b47fbde56ee8507344048d0f9b2 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Fri, 14 May 2021 15:45:34 +0100 Subject: [PATCH] Formatting and linting. --- packages/server/src/db/views/staticViews.js | 6 +++--- packages/string-templates/src/utilities.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/server/src/db/views/staticViews.js b/packages/server/src/db/views/staticViews.js index 62bf58a745..23f320d7eb 100644 --- a/packages/server/src/db/views/staticViews.js +++ b/packages/server/src/db/views/staticViews.js @@ -25,7 +25,7 @@ const SCREEN_PREFIX = DocumentTypes.SCREEN + SEPARATOR * @returns {Promise} The view now exists, please note that the next view of this query will actually build it, * so it may be slow. */ -exports.createLinkView = async (appId) => { +exports.createLinkView = async appId => { const db = new CouchDB(appId) const designDoc = await db.get("_design/database") const view = { @@ -57,7 +57,7 @@ exports.createLinkView = async (appId) => { await db.put(designDoc) } -exports.createRoutingView = async (appId) => { +exports.createRoutingView = async appId => { const db = new CouchDB(appId) const designDoc = await db.get("_design/database") const view = { @@ -90,7 +90,7 @@ async function searchIndex(appId, indexName, fnString) { await db.put(designDoc) } -exports.createAllSearchIndex = async (appId) => { +exports.createAllSearchIndex = async appId => { await searchIndex( appId, SearchIndexes.ROWS, diff --git a/packages/string-templates/src/utilities.js b/packages/string-templates/src/utilities.js index e96ef2956e..e94b7f8ee7 100644 --- a/packages/string-templates/src/utilities.js +++ b/packages/string-templates/src/utilities.js @@ -25,7 +25,7 @@ module.exports.removeNull = obj => { module.exports.updateContext = obj => { if (obj.now == null) { - obj.now = (new Date()).toISOString() + obj.now = new Date().toISOString() } function recurse(obj) { for (let key of Object.keys(obj)) {