1
0
Fork 0
mirror of synced 2024-07-07 23:35:49 +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 => {
const appId = ctx.appId
const { tableId } = ctx.params
const db = new CouchDB(appId)
const {
bookmark,
query,
@ -14,10 +15,8 @@ exports.rowSearch = async ctx => {
sortType,
paginate,
} = ctx.request.body
const db = new CouchDB(appId)
let response
const start = Date.now()
if (paginate) {
response = await paginatedSearch(
appId,
@ -40,9 +39,8 @@ exports.rowSearch = async ctx => {
limit
)
}
const end = Date.now()
console.log("Time: " + (end - start) / 1000 + " ms")
// Enrich search results with relationships
if (response.rows && response.rows.length) {
const table = await db.get(tableId)
response.rows = await outputProcessing(appId, table, response.rows)

View file

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