From ca8444651b26f6a57b9aaa4f712b7137ec705409 Mon Sep 17 00:00:00 2001 From: Samuel Hassine Date: Tue, 6 Apr 2021 16:35:30 +0200 Subject: [PATCH] [api] Fix Redis events catchup connections --- opencti-platform/opencti-graphql/src/database/redis.js | 1 + 1 file changed, 1 insertion(+) diff --git a/opencti-platform/opencti-graphql/src/database/redis.js b/opencti-platform/opencti-graphql/src/database/redis.js index ee45ef2b7c47..ec3ab607a20b 100644 --- a/opencti-platform/opencti-graphql/src/database/redis.js +++ b/opencti-platform/opencti-graphql/src/database/redis.js @@ -486,6 +486,7 @@ export const getStreamRange = async (from, limit, callback) => { if (results && results.length > 0) { await processStreamResult(results, callback); } + await client.disconnect(); const lastResult = R.last(results); return { lastEventId: R.head(lastResult) }; });