templates/Stripeaccount.template.js
function (account, cb) {

		Stripeaccount.findOrCreate(account.id, account)
	    .exec(function (err, foundAccount){
	      if (err) return cb(err);
	      Stripeaccount.update(foundAccount.id, account)
	      .exec(function(err, updatedAccounts){
	      	if (err) return cb(err);
	      	cb(null, updatedAccounts[0]);
	      });
	    });
	}
function (account, cb) {

		Stripeaccount.findOrCreate(account.id, account)
	    .exec(function (err, foundAccount){
	      if (err) return cb(err);
	      Stripeaccount.update(foundAccount.id, account)
	      .exec(function(err, updatedAccounts){
	      	if (err) return cb(err);
	      	cb(null, updatedAccounts[0]);
	      });
	    });
	}
function ( account , cb ) { Stripeaccount . findOrCreate ( account . id , account ) . exec ( function ( err , foundAccount ) { if ( err ) return cb ( err ) ; Stripeaccount . update ( foundAccount . id , account ) . exec ( function ( err , updatedAccounts ) { if ( err ) return cb ( err ) ; cb ( null , updatedAccounts [ 0 ] ) ; } ) ; } ) ; }
Stripe Webhook account.updated
Stripe Webhook account . updated