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 +1 -1
- package/lib/src/index.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
package/lib/package.json
CHANGED
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 ===
|
|
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
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 ===
|
|
44
|
+
if (type === 'app-state-sync-key' && value) {
|
|
45
45
|
value = proto.Message.AppStateSyncKeyData.fromObject(value);
|
|
46
46
|
}
|
|
47
47
|
|