Sfoglia il codice sorgente

trying to isolate google sheets error

tags/v0.5.1.1
Shaun 4 anni fa
parent
commit
0fd19a0704
1 ha cambiato i file con 6 aggiunte e 2 eliminazioni
  1. +6
    -2
      src/server/security/sheets.js

+ 6
- 2
src/server/security/sheets.js Vedi File

@@ -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);
}
}
};

Caricamento…
Annulla
Salva