From 8f8873de344aaf8eb5afba5b98ca3518205f7367 Mon Sep 17 00:00:00 2001 From: Devansh Shah Date: Thu, 29 Oct 2020 16:32:04 -0400 Subject: [PATCH 1/3] Changed HMSET to HSET in storage.js --- src/backend/utils/storage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/utils/storage.js b/src/backend/utils/storage.js index 6619038daf..40f69503a6 100644 --- a/src/backend/utils/storage.js +++ b/src/backend/utils/storage.js @@ -36,7 +36,7 @@ module.exports = { // Using hmset() until hset() fully supports multiple fields: // https://github.com/stipsan/ioredis-mock/issues/345 // https://github.com/luin/ioredis/issues/551 - .hmset( + .hset( key, 'id', feed.id, @@ -107,7 +107,7 @@ module.exports = { const key = createPostKey(post.id); await redis .multi() - .hmset( + .hset( key, 'id', post.id, From 4d82ccec353e756e4f395dba4c3b92963072d467 Mon Sep 17 00:00:00 2001 From: Devansh Shah Date: Thu, 29 Oct 2020 17:03:58 -0400 Subject: [PATCH 2/3] updated ioredis-mock to 5.1.0 in package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 92468d7d3f..94cb3adefc 100644 --- a/package.json +++ b/package.json @@ -83,7 +83,7 @@ "highlight.js": "10.2.0", "http-proxy-middleware": "1.0.5", "ioredis": "4.17.3", - "ioredis-mock": "4.21.3", + "ioredis-mock": "5.1.0", "jsdom": "16.4.0", "node-fetch": "2.6.1", "normalize-url": "5.1.0", From 6acbc11067a4fa39979b813b038ab1f6b691ef36 Mon Sep 17 00:00:00 2001 From: Devansh Shah Date: Thu, 29 Oct 2020 17:46:05 -0400 Subject: [PATCH 3/3] removed comment about HMSET to HSET --- src/backend/utils/storage.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/backend/utils/storage.js b/src/backend/utils/storage.js index 40f69503a6..fc32450311 100644 --- a/src/backend/utils/storage.js +++ b/src/backend/utils/storage.js @@ -33,9 +33,6 @@ module.exports = { const key = createFeedKey(feed.id); await redis .multi() - // Using hmset() until hset() fully supports multiple fields: - // https://github.com/stipsan/ioredis-mock/issues/345 - // https://github.com/luin/ioredis/issues/551 .hset( key, 'id',