Pepguy commited on
Commit
bf358f1
·
verified ·
1 Parent(s): 60367ae

Update app.js

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