Skip to content
This repository was archived by the owner on Apr 5, 2020. It is now read-only.

Commit f46bc82

Browse files
committed
chore: delint
1 parent 882f08c commit f46bc82

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

graphql/resolvers/mutations/create-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = async function createServer (obj, { input }, { state }) {
1111
const conn = await createConnection(input)
1212

1313
const tablesMissing = await Promise.reduce(Object.keys(tables), async (missing, table) => {
14-
const [ [ { exists } ] ] = await conn.execute(
14+
const [[{ exists }]] = await conn.execute(
1515
'SELECT COUNT(*) AS `exists` FROM information_schema.tables WHERE table_schema = ? AND table_name = ?'
1616
, [input.database, input.tables[table]])
1717

graphql/resolvers/mutations/update-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = async function updateServer (obj, { id, input }, { state }) {
1212
const conn = await createConnection(input)
1313

1414
const tablesMissing = await Promise.reduce(Object.keys(tables), async (missing, table) => {
15-
const [ [ { exists } ] ] = await conn.execute(
15+
const [[{ exists }]] = await conn.execute(
1616
'SELECT COUNT(*) AS `exists` FROM information_schema.tables WHERE table_schema = ? AND table_name = ?'
1717
, [input.database, input.tables[table]])
1818

0 commit comments

Comments
 (0)