Fix ArangoDB

This commit is contained in:
Maksim Tereshin 2024-11-21 18:46:06 +01:00
parent 27501b82e1
commit 2ed088e415
No known key found for this signature in database

View file

@ -338,14 +338,17 @@ private Map<String, Object> buildSqlQuery(SqlRequest request, List<String> ids)
Map<String, Object> bindVars = new HashMap<>();
// TODO: verify correctness of received entities and compare keys
Object writeEntity = entities.get(aqlCollectionWrite);
bindVars.put("ids", entities);
Object ids = entities.get(aqlCollectionWrite);
bindVars.put("ids", ids);
AqlQueryOptions aqlQueryOptions = new AqlQueryOptions().streamTransactionId(transactionId);
try {
arangoDb.query(requestURL, null, bindVars, aqlQueryOptions);
logger.info("Successfully removed {}: {}", aqlCollectionWrite, writeEntity);
logger.info("Successfully removed {} for ids: {}", aqlCollectionWrite, ids);
} catch (Exception e) {
logger.error("Failed to execute AQL request: {}", e.getMessage(), e);
}
}
}