From 8f83fd410d02795f5d321a54fdcfa39b8c7b29c9 Mon Sep 17 00:00:00 2001 From: Wille Marcel Date: Wed, 10 Apr 2024 09:15:46 -0300 Subject: [PATCH] Use 'adiff-service:' prefix in the redis key (#7) --- util/redis-client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/redis-client.js b/util/redis-client.js index 0e66746..7beee64 100644 --- a/util/redis-client.js +++ b/util/redis-client.js @@ -6,7 +6,7 @@ const setProcessedState = async (value) => { .on('error', err => console.log('Redis Client Error', err)) .connect(); - await client.set('state', value); + await client.set('adiff-service:state', value); await client.disconnect(); }; @@ -15,7 +15,7 @@ const getLastProcessedState = async () => { .on('error', err => console.log('Redis Client Error', err)) .connect(); - const lastState = await client.get('state'); + const lastState = await client.get('adiff-service:state'); await client.disconnect(); return Number(lastState); };