This commit is contained in:
Martin McKeaveney 2020-04-23 14:51:35 +01:00
parent c315fd3c8d
commit fdc950d221
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
const couchdb = require("../../db")
const CouchDB = require("../../db")
const { schemaValidator } = require("@budibase/common")
exports.save = async function(ctx) {
@ -55,7 +55,7 @@ exports.fetch = async function(ctx) {
}
exports.find = async function(ctx) {
const db = couchdb.db.use(ctx.params.instanceId)
const db = new CouchDB(ctx.params.instanceId)
ctx.body = await db.get(ctx.params.recordId)
}