From 08f8435db72d26142b9bc33389a0684b0857d55f Mon Sep 17 00:00:00 2001 From: Damien Ostler Date: Sat, 24 Feb 2024 22:54:22 -0500 Subject: [PATCH] fix: metadata name for orderid --- src/comissions.app.api/Controllers/RequestsController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/comissions.app.api/Controllers/RequestsController.cs b/src/comissions.app.api/Controllers/RequestsController.cs index 3838f1f..dda14cd 100644 --- a/src/comissions.app.api/Controllers/RequestsController.cs +++ b/src/comissions.app.api/Controllers/RequestsController.cs @@ -67,7 +67,7 @@ public class RequestsController : Controller { var session = stripeEvent.Data.Object as Session; var connectedAccountId = stripeEvent.Account; - var requestId = session.Metadata["/OrderId"]; + var requestId = session.Metadata["orderId"]; var request = await _dbContext.Requests .Include(x=>x.Artist) .FirstOrDefaultAsync(x=>x.Id==int.Parse(requestId));