Removed handlers

This commit is contained in:
alexandercerutti
2018-07-24 00:07:04 +02:00
parent 2f3e6ff43b
commit 7023009b2d
2 changed files with 2 additions and 11 deletions

View File

@@ -22,8 +22,6 @@ class Pass {
this.passTypes = ["boardingPass", "eventTicket", "coupon", "generic", "storeCard"]; this.passTypes = ["boardingPass", "eventTicket", "coupon", "generic", "storeCard"];
this.overrides = options.overrides || {}; this.overrides = options.overrides || {};
this.Certificates = {}; this.Certificates = {};
this.handlers = {};
this.model = null; this.model = null;
this._parseSettings(options) this._parseSettings(options)
.then(() => { .then(() => {
@@ -479,11 +477,8 @@ class Pass {
}); });
}, },
handlersAssignCallback => { return success();
this.handlers = options.handlers || {}; });
return handlersAssignCallback();
}
], success);
}); });
} }

View File

@@ -10,10 +10,6 @@ let instance = Joi.object().keys({
passphrase: Joi.string().required(), passphrase: Joi.string().required(),
}).required() }).required()
}).required(), }).required(),
handlers: Joi.object().keys({
barcode: Joi.func(),
serialNumber: Joi.func()
}),
overrides: Joi.object() overrides: Joi.object()
}); });