From 979fab40809d8e44360683bbe11642135b45e28d Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 5 Aug 2024 15:17:41 +0100 Subject: [PATCH] Fix flushInterval in context module --- lib/context/FFContextStorage.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/context/FFContextStorage.js b/lib/context/FFContextStorage.js index d9a4873..3ee3a0d 100644 --- a/lib/context/FFContextStorage.js +++ b/lib/context/FFContextStorage.js @@ -87,7 +87,6 @@ class FFContextStorage { async function getNext (cursor, limit) { const path = paginateUrl('cache', cursor, limit) - let response try { response = await self.client.get(path, opts) @@ -217,7 +216,7 @@ class FFContextStorage { console.error('Error flushing pending context writes:' + err.toString()) }) }) - }, self.flushInterval) + }, self.config.flushInterval) } } else if (typeof callback !== 'function') { throw new Error('This context store must be called asynchronously')