File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,7 @@ export const BUS_API_EVENT = {
142142 PROJECT_CREATED : 'project.action.create' ,
143143 PROJECT_UPDATED : 'project.action.update' ,
144144 PROJECT_DELETED : 'project.action.delete' ,
145+ PROJECT_BILLING_ACCOUNT_UPDATED : 'project.action.billingAccount.update' ,
145146
146147 PROJECT_MEMBER_ADDED : 'project.action.create' ,
147148 PROJECT_MEMBER_REMOVED : 'project.action.delete' ,
Original file line number Diff line number Diff line change @@ -96,6 +96,18 @@ module.exports = (app, logger) => {
9696 projectUrl : connectProjectUrl ( updated . id ) ,
9797 } ) , logger ) ;
9898
99+ if ( ! _ . isEqual ( original . billingAccountId , updated . billingAccountId ) ) {
100+ logger . debug ( 'project billing account is updated' ) ;
101+ createEvent ( BUS_API_EVENT . PROJECT_BILLING_ACCOUNT_UPDATED , {
102+ projectId : updated . id ,
103+ projectName : updated . name ,
104+ directProjectId : updated . directProjectId ,
105+ status : updated . status ,
106+ oldBillingAccountId : original . billingAccountId ,
107+ newBillingAccountId : updated . billingAccountId ,
108+ } , logger ) ;
109+ }
110+
99111 /*
100112 Send event for Notification Service
101113 */
You can’t perform that action at this time.
0 commit comments