Skip to content

Commit

Permalink
[api] Fix Redis events catchup connections
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Hassine committed Apr 6, 2021
1 parent fc71bd7 commit ca84446
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions opencti-platform/opencti-graphql/src/database/redis.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) };
});
Expand Down

0 comments on commit ca84446

Please sign in to comment.