Merge pull request #10713 from Budibase/fix/internal-view-eval-fn
Fix for fetching Internal DB Views in QA cloud
This commit is contained in:
commit
bd50f32f0d
|
@ -25,9 +25,8 @@ export async function runView(
|
|||
}))
|
||||
)
|
||||
let fn = (doc: Document, emit: any) => emit(doc._id)
|
||||
;(0, eval)(
|
||||
"fn = " + view?.map?.replace("function (doc)", "function (doc, emit)")
|
||||
)
|
||||
// BUDI-7060 -> indirect eval call appears to cause issues in cloud
|
||||
eval("fn = " + view?.map?.replace("function (doc)", "function (doc, emit)"))
|
||||
const queryFns: any = {
|
||||
meta: view.meta,
|
||||
map: fn,
|
||||
|
|
Loading…
Reference in New Issue