diff --git a/src/server/security/sheets.js b/src/server/security/sheets.js index 4fd60b33..652cf6ec 100644 --- a/src/server/security/sheets.js +++ b/src/server/security/sheets.js @@ -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); + } } };