1
0
Fork 0
mirror of synced 2024-07-15 19:25:55 +12:00

Remove debug logging

This commit is contained in:
Andrew Kingston 2021-05-13 15:37:06 +01:00
parent 1a729aca91
commit e4ce428ef1
2 changed files with 2 additions and 5 deletions

View file

@ -5,6 +5,7 @@ const { outputProcessing } = require("../../../utilities/rowProcessor")
exports.rowSearch = async ctx => { exports.rowSearch = async ctx => {
const appId = ctx.appId const appId = ctx.appId
const { tableId } = ctx.params const { tableId } = ctx.params
const db = new CouchDB(appId)
const { const {
bookmark, bookmark,
query, query,
@ -14,10 +15,8 @@ exports.rowSearch = async ctx => {
sortType, sortType,
paginate, paginate,
} = ctx.request.body } = ctx.request.body
const db = new CouchDB(appId)
let response let response
const start = Date.now()
if (paginate) { if (paginate) {
response = await paginatedSearch( response = await paginatedSearch(
appId, appId,
@ -40,9 +39,8 @@ exports.rowSearch = async ctx => {
limit limit
) )
} }
const end = Date.now()
console.log("Time: " + (end - start) / 1000 + " ms")
// Enrich search results with relationships
if (response.rows && response.rows.length) { if (response.rows && response.rows.length) {
const table = await db.get(tableId) const table = await db.get(tableId)
response.rows = await outputProcessing(appId, table, response.rows) response.rows = await outputProcessing(appId, table, response.rows)

View file

@ -173,7 +173,6 @@ class QueryBuilder {
url += `&bookmark=${this.bookmark}` url += `&bookmark=${this.bookmark}`
} }
console.log(url)
// Fix any double slashes in the URL // Fix any double slashes in the URL
return checkSlashesInUrl(url) return checkSlashesInUrl(url)
} }