Skip to content
Snippets Groups Projects
Commit 5dacd895 authored by Dennis Collaris's avatar Dennis Collaris
Browse files

fix: await async methods

parent ea4babf5
No related branches found
No related tags found
1 merge request!31fix: await async methods
Checking pipeline status
......@@ -23,11 +23,8 @@ async function main() {
await redis.connect();
log.info('Connected to Redis!');
queryServiceReader(frontendPublisher, mlPublisher, 'neo4j');
insightProcessor();
// TODO: other query services for other databases
log.info('Connected to RabbitMQ!');
await queryServiceReader(frontendPublisher, mlPublisher, 'neo4j');
await insightProcessor();
}
main();
await main();
......@@ -94,7 +94,7 @@ export const insightProcessor = async () => {
const cypher = query2Cypher(convertedQuery);
if (cypher == null) return;
try {
const result = await queryService(ss.dbConnections[0], cypher);
const result = await queryService(ss.dbConnections[0], cypher, true);
insight.status = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment