Skip to content

Commit

Permalink
this commit is ok
Browse files Browse the repository at this point in the history
  • Loading branch information
SOVLOOKUP committed Jan 28, 2021
1 parent 136faa2 commit faaf4c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/server/src/integrations/arangodb.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit faaf4c6

Please sign in to comment.