Browse Source

fix: fixed issue with io module callbacks

Kristian Vos 5 năm trước cách đây
mục cha
commit
94393ce4a3
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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'}); }