Skip to content
Snippets Groups Projects
Commit 04736c1c authored by Leonardo's avatar Leonardo
Browse files

chore: always allow updating query at the end of the call

important for viewer users, since it would break for them since they don't have write access
parent 4906aa55
No related branches found
No related tags found
1 merge request!41chore: always allow updating query at the end of the call
Pipeline #146918 passed
......@@ -7,7 +7,11 @@ import { query2Cypher } from '../utils/cypher/converter';
import { parseCountCypherQuery, parseCypherQuery } from '../utils/cypher/queryParser';
import { formatTimeDifference } from 'ts-common/src/logger/logger';
import { Query2BackendQuery } from '../utils/reactflow/query2backend';
import type { GraphQueryResultFromBackend, GraphQueryResultMetaFromBackend } from 'ts-common/src/model/webSocket/graphResult';
import type {
CountQueryResultFromBackend,
GraphQueryResultFromBackend,
GraphQueryResultMetaFromBackend,
} from 'ts-common/src/model/webSocket/graphResult';
import { RabbitMqBroker } from 'ts-common/rabbitMq';
import { Neo4jConnection } from 'ts-common/neo4j';
import type { QueryCypher } from '../utils/cypher/converter/queryConverter';
......@@ -190,7 +194,7 @@ export const queryServiceReader = async (frontendPublisher: RabbitMqBroker, mlPu
const result = await queryService(ss.dbConnections[i], cypher, message.useCached);
// Cache nodeCounts such that we can display differentiation for each query
await ums.updateQuery(headers.message.sessionData.userID, message.saveStateID, {
await ums.updateQuery(ss.userId, message.saveStateID, {
...activeQueryInfo,
graph: {
...activeQueryInfo.graph,
......
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