Explorar el Código

Merge branch 'master' of gitlab.com:Isleward/isleward

tags/v0.6^2
Shaun hace 4 años
padre
commit
e9f02d9ab3
Se han modificado 1 ficheros con 6 adiciones y 2 borrados
  1. +6
    -2
      src/server/security/sheets.js

+ 6
- 2
src/server/security/sheets.js Ver fichero

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

Cargando…
Cancelar
Guardar