mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-30 20:43:52 -04:00 
			
		
		
		
	add client to payments webhook
This commit is contained in:
		
							parent
							
								
									aaf5cfb7cd
								
							
						
					
					
						commit
						85c149e9ad
					
				| @ -30,7 +30,7 @@ class PaymentObserver | |||||||
|                             ->exists(); |                             ->exists(); | ||||||
| 
 | 
 | ||||||
|         if ($subscriptions) { |         if ($subscriptions) { | ||||||
|             WebhookHandler::dispatch(Webhook::EVENT_CREATE_PAYMENT, $payment, $payment->company, 'invoices'); |             WebhookHandler::dispatch(Webhook::EVENT_CREATE_PAYMENT, $payment, $payment->company, 'invoices,client'); | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
| @ -57,7 +57,7 @@ class PaymentObserver | |||||||
|                         ->exists(); |                         ->exists(); | ||||||
| 
 | 
 | ||||||
|         if ($subscriptions) { |         if ($subscriptions) { | ||||||
|             WebhookHandler::dispatch(Webhook::EVENT_DELETE_PAYMENT, $payment, $payment->company, 'invoices'); |             WebhookHandler::dispatch(Webhook::EVENT_DELETE_PAYMENT, $payment, $payment->company, 'invoices,client'); | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user