Browse Source

Linting + formatting.

gh-pages
mike12345567 5 years ago
parent
commit
477adfdbd7
  1. 9
      packages/server/src/db/linkedRows/index.js
  2. 7
      packages/server/src/db/linkedRows/linkUtils.js

9
packages/server/src/db/linkedRows/index.js

@ -98,14 +98,7 @@ async function getFullLinkedDocs(appId, links) {
* row operations and the table for table operations.
*/
exports.updateLinks = async function (args) {
const {
eventType,
appId,
row,
tableId,
table,
oldTable,
} = args
const { eventType, appId, row, tableId, table, oldTable } = args
const baseReturnObj = row == null ? table : row
if (appId == null) {
throw "Cannot operate without an instance ID."

7
packages/server/src/db/linkedRows/linkUtils.js

@ -30,12 +30,7 @@ exports.createLinkView = createLinkView
* (if any).
*/
exports.getLinkDocuments = async function (args) {
const {
appId,
tableId,
rowId,
includeDocs,
} = args
const { appId, tableId, rowId, includeDocs } = args
const db = new CouchDB(appId)
let params
if (rowId != null) {

Loading…
Cancel
Save