Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Q
query-service
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GraphPolaris
Microservices
query-service
Compare revisions
v1.21.0 to v1.21.1
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
graphpolaris/microservices/query-service
Select target project
No results found
v1.21.1
Select Git revision
Swap
Target
graphpolaris/microservices/query-service
Select target project
graphpolaris/microservices/query-service
1 result
v1.21.0
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (1)
fix: await async methods
· 5dacd895
Dennis Collaris
authored
1 month ago
5dacd895
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/index.ts
+3
-6
3 additions, 6 deletions
src/index.ts
src/readers/insightProcessor.ts
+1
-1
1 addition, 1 deletion
src/readers/insightProcessor.ts
with
4 additions
and
7 deletions
src/index.ts
View file @
5dacd895
...
@@ -23,11 +23,8 @@ async function main() {
...
@@ -23,11 +23,8 @@ async function main() {
await
redis
.
connect
();
await
redis
.
connect
();
log
.
info
(
'
Connected to Redis!
'
);
log
.
info
(
'
Connected to Redis!
'
);
queryServiceReader
(
frontendPublisher
,
mlPublisher
,
'
neo4j
'
);
await
queryServiceReader
(
frontendPublisher
,
mlPublisher
,
'
neo4j
'
);
insightProcessor
();
await
insightProcessor
();
// TODO: other query services for other databases
log
.
info
(
'
Connected to RabbitMQ!
'
);
}
}
main
();
await
main
();
This diff is collapsed.
Click to expand it.
src/readers/insightProcessor.ts
View file @
5dacd895
...
@@ -94,7 +94,7 @@ export const insightProcessor = async () => {
...
@@ -94,7 +94,7 @@ export const insightProcessor = async () => {
const
cypher
=
query2Cypher
(
convertedQuery
);
const
cypher
=
query2Cypher
(
convertedQuery
);
if
(
cypher
==
null
)
return
;
if
(
cypher
==
null
)
return
;
try
{
try
{
const
result
=
await
queryService
(
ss
.
dbConnections
[
0
],
cypher
);
const
result
=
await
queryService
(
ss
.
dbConnections
[
0
],
cypher
,
true
);
insight
.
status
=
false
;
insight
.
status
=
false
;
...
...
This diff is collapsed.
Click to expand it.