瀏覽代碼

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

tags/v0.6^2
Shaun 4 年之前
父節點
當前提交
e9f02d9ab3
共有 1 個檔案被更改,包括 6 行新增2 行删除
  1. +6
    -2
      src/server/security/sheets.js

+ 6
- 2
src/server/security/sheets.js 查看文件

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


update: async function () { 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);
}
} }
}; };

Loading…
取消
儲存