correction to check for parsed response

This commit is contained in:
Nour Alharithi
2024-03-06 11:34:49 -08:00
parent 9c63ffb4a9
commit 4a97d2e56f

View File

@@ -767,7 +767,7 @@ const main = async (): Promise<void> => {
if (redisResponse) { if (redisResponse) {
const parsedResponse = JSON.parse(redisResponse); const parsedResponse = JSON.parse(redisResponse);
if ( if (
parsedResponse.slot && parsedResponse &&
Math.abs(dlobProvider.getSlot() - parsedResponse.slot) < Math.abs(dlobProvider.getSlot() - parsedResponse.slot) <
SLOT_STALENESS_TOLERANCE SLOT_STALENESS_TOLERANCE
) { ) {