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

Update app.js

Browse files
Files changed (1) hide show
  1. app.js +7 -7
app.js CHANGED
@@ -23,15 +23,15 @@ const drive = google.drive({ version: 'v3', auth });
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
-
35
  async function uploadToDrive(filename) {
36
  const res = await drive.files.create({
37
  requestBody: {
 
23
 
24
  async function getAllRedisData() {
25
  const result = [];
26
+ const keys = await redis.keys('*');
27
+
28
+ for (const key of keys) {
29
+ const value = await redis.get(key);
30
+ result.push({ key, value });
31
+ }
32
+
33
  return result;
34
  }
 
35
  async function uploadToDrive(filename) {
36
  const res = await drive.files.create({
37
  requestBody: {