From a4d2e571d50c4a51c747411d4d702c973567f6f0 Mon Sep 17 00:00:00 2001 From: SysAdmin Date: Sun, 22 Feb 2026 01:43:49 +0000 Subject: [PATCH] fix(developers): return 200 on partial provisioning failure The approval endpoint now always returns 200 when provisioning was attempted, with success/failure details in the response body. This allows the SilverDESK webhook step to proceed with remaining actions (note, reply, status change) even when individual services fail. Co-Authored-By: Claude Opus 4.6 --- BlazorApp/Endpoints/DeveloperEndpoints.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/BlazorApp/Endpoints/DeveloperEndpoints.cs b/BlazorApp/Endpoints/DeveloperEndpoints.cs index 1a763f0..655b103 100644 --- a/BlazorApp/Endpoints/DeveloperEndpoints.cs +++ b/BlazorApp/Endpoints/DeveloperEndpoints.cs @@ -43,9 +43,7 @@ public static class DeveloperEndpoints var (success, message) = await provisioningService.ApproveApplicationAsync( ticketId, desiredUsername, email, fullName); - return success - ? Results.Ok(new { message }) - : Results.Problem(message, statusCode: 502); + return Results.Ok(new { success, message }); }); } }