Pepguy commited on
Commit
c6c42f9
·
verified ·
1 Parent(s): 2e2b96a

Update app.js

Browse files
Files changed (1) hide show
  1. app.js +6 -4
app.js CHANGED
@@ -23,10 +23,12 @@ const drive = google.drive({ version: 'v3', auth });
23
 
24
  async function getAllRedisData() {
25
  const result = [];
26
- for await (const key of redis.keys('*')) {
27
- const value = await redis.get(key);
28
- result.push({ key, value }); // Preserve both key and value
29
- }
 
 
30
  return result;
31
  }
32
 
 
23
 
24
  async function getAllRedisData() {
25
  const result = [];
26
+ const keys = await redis.keys('*'); // '*' matches all keys
27
+ keys.forEach(key => {
28
+ const value = await redis.get(key);
29
+ result.push({ key, value }); // Preserve both key and value
30
+ });
31
+
32
  return result;
33
  }
34