tidy up
This commit is contained in:
parent
c6cafeb2c0
commit
b2e801a77b
|
@ -1,4 +1,4 @@
|
||||||
const couchdb = require("../../db")
|
const CouchDB = require("../../db")
|
||||||
const { schemaValidator } = require("@budibase/common")
|
const { schemaValidator } = require("@budibase/common")
|
||||||
|
|
||||||
exports.save = async function(ctx) {
|
exports.save = async function(ctx) {
|
||||||
|
@ -55,7 +55,7 @@ exports.fetch = async function(ctx) {
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.find = 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)
|
ctx.body = await db.get(ctx.params.recordId)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue