Przeglądaj źródła

trying to isolate google sheets error

(cherry picked from commit 0fd19a0704)
tags/v0.6^2
Shaun 4 lat temu
committed by Big Bad Waffle
rodzic
commit
9319c45108
1 zmienionych plików z 6 dodań i 2 usunięć
  1. +6
    -2
      src/server/security/sheets.js

+ 6
- 2
src/server/security/sheets.js Wyświetl plik

@@ -75,7 +75,11 @@ module.exports = {
},

update: async function () {
const records = await this.sheet.getRows();
this.onGetRows(null, records);
try {
const records = await this.sheet.getRows();
this.onGetRows(null, records);
} catch (e) {
setTimeout(this.update.bind(this), 300000);
}
}
};

Ładowanie…
Anuluj
Zapisz