Browse Source

this commit is ok

gh-pages
sovlookup 6 years ago
parent
commit
aeee8af0d8
  1. 2
      packages/server/src/integrations/arangodb.js

2
packages/server/src/integrations/arangodb.js

@ -52,6 +52,7 @@ class ArangoDBIntegration {
async read(query) {
try {
const result = await this.client.query(query.sql)
let rl = []
return result.forEach(r => rl.push(r))
} catch (err) {
console.error("Error querying arangodb", err.message)
@ -67,6 +68,7 @@ class ArangoDBIntegration {
const result = await this.client.query(
aql`INSERT ${query.json} INTO ${clc} LET n = NEW RETURN NEW`
)
let rl = []
return result.forEach(r => rl.push(r))
} catch (err) {
console.error("Error querying arangodb", err.message)

Loading…
Cancel
Save