Browse Source

fix: fixed issue with io module callbacks

Kristian Vos 5 years ago
parent
commit
94393ce4a3
1 changed files with 1 additions and 0 deletions
  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'}); }