Linting + formatting.
This commit is contained in:
parent
191646b7ee
commit
477adfdbd7
|
@ -98,14 +98,7 @@ async function getFullLinkedDocs(appId, links) {
|
||||||
* row operations and the table for table operations.
|
* row operations and the table for table operations.
|
||||||
*/
|
*/
|
||||||
exports.updateLinks = async function (args) {
|
exports.updateLinks = async function (args) {
|
||||||
const {
|
const { eventType, appId, row, tableId, table, oldTable } = args
|
||||||
eventType,
|
|
||||||
appId,
|
|
||||||
row,
|
|
||||||
tableId,
|
|
||||||
table,
|
|
||||||
oldTable,
|
|
||||||
} = args
|
|
||||||
const baseReturnObj = row == null ? table : row
|
const baseReturnObj = row == null ? table : row
|
||||||
if (appId == null) {
|
if (appId == null) {
|
||||||
throw "Cannot operate without an instance ID."
|
throw "Cannot operate without an instance ID."
|
||||||
|
|
|
@ -30,12 +30,7 @@ exports.createLinkView = createLinkView
|
||||||
* (if any).
|
* (if any).
|
||||||
*/
|
*/
|
||||||
exports.getLinkDocuments = async function (args) {
|
exports.getLinkDocuments = async function (args) {
|
||||||
const {
|
const { appId, tableId, rowId, includeDocs } = args
|
||||||
appId,
|
|
||||||
tableId,
|
|
||||||
rowId,
|
|
||||||
includeDocs,
|
|
||||||
} = args
|
|
||||||
const db = new CouchDB(appId)
|
const db = new CouchDB(appId)
|
||||||
let params
|
let params
|
||||||
if (rowId != null) {
|
if (rowId != null) {
|
||||||
|
|
Loading…
Reference in New Issue