File tree Expand file tree Collapse file tree 2 files changed +14
-13
lines changed
Expand file tree Collapse file tree 2 files changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -2138,10 +2138,11 @@ paths:
21382138 type : string
21392139 remove :
21402140 type : boolean
2141+ add :
2142+ type : boolean
21412143 required :
21422144 - numberJid
21432145 - labelId
2144- - remove
21452146
21462147 /settings/set/{instanceName} :
21472148 post :
Original file line number Diff line number Diff line change @@ -2375,20 +2375,20 @@ export class WAStartupService {
23752375 this . logger . verbose ( 'Listening event: contacts.update' ) ;
23762376 const payload = events [ 'contacts.update' ] ;
23772377 this . contactHandle [ 'contacts.update' ] ( payload , database ) ;
2378+ }
23782379
2379- if ( events [ Events . LABELS_ASSOCIATION ] ) {
2380- this . logger . verbose ( 'Listening event: labels.association' ) ;
2381- const payload = events [ Events . LABELS_ASSOCIATION ] ;
2382- this . labelHandle [ Events . LABELS_ASSOCIATION ] ( payload , database ) ;
2383- return ;
2384- }
2380+ if ( events [ Events . LABELS_ASSOCIATION ] ) {
2381+ this . logger . verbose ( 'Listening event: labels.association' ) ;
2382+ const payload = events [ Events . LABELS_ASSOCIATION ] ;
2383+ this . labelHandle [ Events . LABELS_ASSOCIATION ] ( payload , database ) ;
2384+ return ;
2385+ }
23852386
2386- if ( events [ Events . LABELS_EDIT ] ) {
2387- this . logger . verbose ( 'Listening event: labels.edit' ) ;
2388- const payload = events [ Events . LABELS_EDIT ] ;
2389- this . labelHandle [ Events . LABELS_EDIT ] ( payload , database ) ;
2390- return ;
2391- }
2387+ if ( events [ Events . LABELS_EDIT ] ) {
2388+ this . logger . verbose ( 'Listening event: labels.edit' ) ;
2389+ const payload = events [ Events . LABELS_EDIT ] ;
2390+ this . labelHandle [ Events . LABELS_EDIT ] ( payload , database ) ;
2391+ return ;
23922392 }
23932393 }
23942394 } ) ;
You can’t perform that action at this time.
0 commit comments