baileys-redis-auth 1.0.3 → 1.0.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.
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "baileys-redis-auth",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Redis Auth for Baileys",
5
5
  "author": "heriyanto binduni <hbinduni@gmail.com>",
6
6
  "license": "MIT",
package/lib/src/index.js CHANGED
@@ -32,7 +32,7 @@ const useRedisAuthState = async (redisOptions, prefix = 'DB1') => {
32
32
  const data = {};
33
33
  await Promise.all(ids.map(async (id) => {
34
34
  let value = await readData(`${type}-${id}`);
35
- if (type === `${prefix}:app-state-sync-key` && value) {
35
+ if (type === 'app-state-sync-key' && value) {
36
36
  value = baileys_1.proto.Message.AppStateSyncKeyData.fromObject(value);
37
37
  }
38
38
  data[id] = value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "baileys-redis-auth",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Redis Auth for Baileys",
5
5
  "author": "heriyanto binduni <hbinduni@gmail.com>",
6
6
  "license": "MIT",
package/src/index.ts CHANGED
@@ -41,7 +41,7 @@ export const useRedisAuthState = async (
41
41
  await Promise.all(
42
42
  ids.map(async (id) => {
43
43
  let value = await readData(`${type}-${id}`);
44
- if (type === `${prefix}:app-state-sync-key` && value) {
44
+ if (type === 'app-state-sync-key' && value) {
45
45
  value = proto.Message.AppStateSyncKeyData.fromObject(value);
46
46
  }
47
47