mirror of
				https://github.com/D4M13N-D3V/comissions-app-core-api.git
				synced 2025-10-31 17:45:26 +00:00 
			
		
		
		
	fix
This commit is contained in:
		
							parent
							
								
									6ae4e81ad3
								
							
						
					
					
						commit
						de95f333aa
					
				| @ -71,15 +71,16 @@ public class ArtistController : Controller | |||||||
|         await _dbContext.SaveChangesAsync(); |         await _dbContext.SaveChangesAsync(); | ||||||
|         var result = updatedArtist.ToModel(); |         var result = updatedArtist.ToModel(); | ||||||
| 
 | 
 | ||||||
|         await _client.Event.Trigger(new EventCreateData() |         var newTriggerModel = new EventCreateData() | ||||||
|         { |         { | ||||||
|             EventName = "artistupdated", |             EventName = "artistupdated", | ||||||
|             To = |             To = | ||||||
|             { |             { | ||||||
|                 SubscriberId = userId, |                 SubscriberId = userId, | ||||||
|             }, |             }, | ||||||
|             Payload = {} |             Payload = { } | ||||||
|         }); |         }; | ||||||
|  |         await _client.Event.Trigger(newTriggerModel); | ||||||
|          |          | ||||||
|         return Ok(result); |         return Ok(result); | ||||||
|     } |     } | ||||||
|  | |||||||
| @ -71,7 +71,7 @@ public class RequestsController : Controller | |||||||
|                     request.Artist.StripeAccountId == connectedAccountId) |                     request.Artist.StripeAccountId == connectedAccountId) | ||||||
|                     { |                     { | ||||||
|                         request.Paid = true; |                         request.Paid = true; | ||||||
|                         request.PaidDate = DateTime.UtcNow;  |                         request.PaidDate = DateTime.UtcNow; | ||||||
|                     } |                     } | ||||||
|                 } |                 } | ||||||
|                 else if (stripeEvent.Type == Events.AccountUpdated) |                 else if (stripeEvent.Type == Events.AccountUpdated) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Damien Ostler
						Damien Ostler