Formatting and linting.
This commit is contained in:
parent
9e00928337
commit
6c06fd2a16
2 changed files with 4 additions and 4 deletions
|
@ -25,7 +25,7 @@ const SCREEN_PREFIX = DocumentTypes.SCREEN + SEPARATOR
|
||||||
* @returns {Promise<void>} The view now exists, please note that the next view of this query will actually build it,
|
* @returns {Promise<void>} The view now exists, please note that the next view of this query will actually build it,
|
||||||
* so it may be slow.
|
* so it may be slow.
|
||||||
*/
|
*/
|
||||||
exports.createLinkView = async (appId) => {
|
exports.createLinkView = async appId => {
|
||||||
const db = new CouchDB(appId)
|
const db = new CouchDB(appId)
|
||||||
const designDoc = await db.get("_design/database")
|
const designDoc = await db.get("_design/database")
|
||||||
const view = {
|
const view = {
|
||||||
|
@ -57,7 +57,7 @@ exports.createLinkView = async (appId) => {
|
||||||
await db.put(designDoc)
|
await db.put(designDoc)
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.createRoutingView = async (appId) => {
|
exports.createRoutingView = async appId => {
|
||||||
const db = new CouchDB(appId)
|
const db = new CouchDB(appId)
|
||||||
const designDoc = await db.get("_design/database")
|
const designDoc = await db.get("_design/database")
|
||||||
const view = {
|
const view = {
|
||||||
|
@ -90,7 +90,7 @@ async function searchIndex(appId, indexName, fnString) {
|
||||||
await db.put(designDoc)
|
await db.put(designDoc)
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.createAllSearchIndex = async (appId) => {
|
exports.createAllSearchIndex = async appId => {
|
||||||
await searchIndex(
|
await searchIndex(
|
||||||
appId,
|
appId,
|
||||||
SearchIndexes.ROWS,
|
SearchIndexes.ROWS,
|
||||||
|
|
|
@ -25,7 +25,7 @@ module.exports.removeNull = obj => {
|
||||||
|
|
||||||
module.exports.updateContext = obj => {
|
module.exports.updateContext = obj => {
|
||||||
if (obj.now == null) {
|
if (obj.now == null) {
|
||||||
obj.now = (new Date()).toISOString()
|
obj.now = new Date().toISOString()
|
||||||
}
|
}
|
||||||
function recurse(obj) {
|
function recurse(obj) {
|
||||||
for (let key of Object.keys(obj)) {
|
for (let key of Object.keys(obj)) {
|
||||||
|
|
Loading…
Reference in a new issue