templates/Subscription.template.js
function (subscription, cb) {

		Subscription.destroy(subscription.id)
	    .exec(function (err, destroyedSubscriptions){
	      if (err) return cb(err);
	      if (!destroyedSubscriptions) return cb(null, subscription);
	      Subscription.afterStripeCustomerSubscriptionDeleted(destroyedSubscriptions[0], function(err, subscription){
	      	cb(err, subscription);
	      });
	    });
	}
function (subscription, cb) {

		Subscription.destroy(subscription.id)
	    .exec(function (err, destroyedSubscriptions){
	      if (err) return cb(err);
	      if (!destroyedSubscriptions) return cb(null, subscription);
	      Subscription.afterStripeCustomerSubscriptionDeleted(destroyedSubscriptions[0], function(err, subscription){
	      	cb(err, subscription);
	      });
	    });
	}
function ( subscription , cb ) { Subscription . destroy ( subscription . id ) . exec ( function ( err , destroyedSubscriptions ) { if ( err ) return cb ( err ) ; if ( ! destroyedSubscriptions ) return cb ( null , subscription ) ; Subscription . afterStripeCustomerSubscriptionDeleted ( destroyedSubscriptions [ 0 ] , function ( err , subscription ) { cb ( err , subscription ) ; } ) ; } ) ; }
Stripe Webhook customer.subscription.deleted
Stripe Webhook customer . subscription . deleted