Remove debug logging
This commit is contained in:
parent
1a729aca91
commit
e4ce428ef1
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue