mielk-fn 1.2.3 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ export const removeRedisKey = async (key) => {
6
6
  export const addRedisKey = async (key, content, ttlSeconds) => {
7
7
  const redisClient = await getRedisClient();
8
8
  const options = ttlSeconds ? createExpirationOptionObject(ttlSeconds) : {};
9
- await redisClient.set(key, JSON.stringify({ locked: true }), options);
9
+ await redisClient.set(key, JSON.stringify(content), options);
10
10
  };
11
11
  const createExpirationOptionObject = (ttlSeconds) => {
12
12
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mielk-fn",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "keywords": [],
5
5
  "author": "mielk",
6
6
  "description": "Generic functions used in various projects",