Pepguy commited on
Commit
5f00263
·
verified ·
1 Parent(s): 38d9f57

Update app.js

Browse files
Files changed (1) hide show
  1. app.js +2 -2
app.js CHANGED
@@ -23,8 +23,8 @@ const drive = google.drive({ version: 'v3', auth });
23
 
24
  async function getAllRedisData() {
25
  const result = [];
26
- for await (const key of client.scanIterator()) {
27
- const value = await client.get(key);
28
  result.push({ key, value }); // Preserve both key and value
29
  }
30
  return result;
 
23
 
24
  async function getAllRedisData() {
25
  const result = [];
26
+ for await (const key of redis.scanIterator()) {
27
+ const value = await redis.get(key);
28
  result.push({ key, value }); // Preserve both key and value
29
  }
30
  return result;