瀏覽代碼

fix: fixed issue with io module callbacks

Kristian Vos 5 年之前
父節點
當前提交
94393ce4a3
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      backend/logic/io.js

+ 1 - 0
backend/logic/io.js

@@ -119,6 +119,7 @@ module.exports = class extends coreClass {
 									cb = () => {
 										this.logger.info("IO_MODULE", `There was no callback provided for ${name}.`);
 									}
+								else args.pop();
 
 								try { await this._validateHook(); } catch { return cb({status: 'failure', message: 'Lockdown'}); }