Subscription/unsubscription seems to work.

This commit is contained in:
Tomas Bures 2018-01-27 16:37:14 +01:00
parent d8ee364a4b
commit e9165838dc
22 changed files with 14939 additions and 196 deletions

View file

@ -105,13 +105,6 @@ class InvalidConfirmationForUnsubscriptionError extends InteroperableError {
}
}
class SubscriptionNotAllowedError extends InteroperableError {
constructor(msg, data) {
super('SubscriptionNotAllowedError', msg, data);
this.status = 403;
}
}
const errorTypes = {
InteroperableError,
NotLoggedInError,
@ -129,8 +122,7 @@ const errorTypes = {
PermissionDeniedError,
InvalidConfirmationForSubscriptionError,
InvalidConfirmationForAddressChangeError,
InvalidConfirmationForUnsubscriptionError,
SubscriptionNotAllowedError
InvalidConfirmationForUnsubscriptionError
};
function deserialize(errorObj) {