fix(developers): return 200 on partial provisioning failure
All checks were successful
Build and Deploy / deploy (push) Successful in 17s
All checks were successful
Build and Deploy / deploy (push) Successful in 17s
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 <noreply@anthropic.com>
This commit is contained in:
@@ -43,9 +43,7 @@ public static class DeveloperEndpoints
|
|||||||
var (success, message) = await provisioningService.ApproveApplicationAsync(
|
var (success, message) = await provisioningService.ApproveApplicationAsync(
|
||||||
ticketId, desiredUsername, email, fullName);
|
ticketId, desiredUsername, email, fullName);
|
||||||
|
|
||||||
return success
|
return Results.Ok(new { success, message });
|
||||||
? Results.Ok(new { message })
|
|
||||||
: Results.Problem(message, statusCode: 502);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user