From 96f0de3366e7a6d14284e90a73b3bc43a45967c8 Mon Sep 17 00:00:00 2001 From: kevmodrome Date: Mon, 29 Jun 2020 10:12:13 +0200 Subject: [PATCH] lint fixes --- packages/builder/src/components/settings/tabs/index.js | 10 +++++----- packages/server/src/api/controllers/user.js | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/builder/src/components/settings/tabs/index.js b/packages/builder/src/components/settings/tabs/index.js index b723ca68d3..a1d1df38e4 100644 --- a/packages/builder/src/components/settings/tabs/index.js +++ b/packages/builder/src/components/settings/tabs/index.js @@ -1,5 +1,5 @@ -export { default as General } from './General.svelte'; -export { default as Integrations } from './Integrations.svelte'; -export { default as Permissions } from './Permissions.svelte'; -export { default as Users } from './Users.svelte'; -export { default as DangerZone } from './DangerZone.svelte'; \ No newline at end of file +export { default as General } from "./General.svelte" +export { default as Integrations } from "./Integrations.svelte" +export { default as Permissions } from "./Permissions.svelte" +export { default as Users } from "./Users.svelte" +export { default as DangerZone } from "./DangerZone.svelte" diff --git a/packages/server/src/api/controllers/user.js b/packages/server/src/api/controllers/user.js index bba4376185..9c983efbbd 100644 --- a/packages/server/src/api/controllers/user.js +++ b/packages/server/src/api/controllers/user.js @@ -7,7 +7,7 @@ const { ADMIN_LEVEL_ID, } = require("../../utilities/accessLevels") -exports.fetch = async function (ctx) { +exports.fetch = async function(ctx) { const database = new CouchDB(ctx.user.instanceId) const data = await database.query("database/by_type", { include_docs: true, @@ -17,7 +17,7 @@ exports.fetch = async function (ctx) { ctx.body = data.rows.map(row => row.doc) } -exports.create = async function (ctx) { +exports.create = async function(ctx) { const database = new CouchDB(ctx.user.instanceId) const appId = (await database.get("_design/database")).metadata.applicationId const { username, password, name, accessLevelId } = ctx.request.body @@ -63,7 +63,7 @@ exports.create = async function (ctx) { } } -exports.update = async function (ctx) { +exports.update = async function(ctx) { const db = new CouchDB(ctx.user.instanceId) const user = ctx.request.body @@ -81,14 +81,14 @@ exports.update = async function (ctx) { } } -exports.destroy = async function (ctx) { +exports.destroy = async function(ctx) { const database = new CouchDB(ctx.user.instanceId) await database.destroy(getUserId(ctx.params.username)) ctx.message = `User ${ctx.params.username} deleted.` ctx.status = 200 } -exports.find = async function (ctx) { +exports.find = async function(ctx) { const database = new CouchDB(ctx.user.instanceId) const user = await database.get(getUserId(ctx.params.username)) ctx.body = {