From 19b32940ecbe94e5f9a105c2f719e1d8044984ce Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sun, 1 Feb 2026 20:37:18 +0100 Subject: [PATCH] mending contract --- src/Auth/AuthAPI/Program.cs | 2 +- .../Registration.API/Controllers/RegistrationController.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Auth/AuthAPI/Program.cs b/src/Auth/AuthAPI/Program.cs index 600ec4b..992dfcf 100644 --- a/src/Auth/AuthAPI/Program.cs +++ b/src/Auth/AuthAPI/Program.cs @@ -32,7 +32,7 @@ app.MapGet("/validate", async ( return Results.StatusCode((int)response.StatusCode); var content = await response.Content.ReadAsStringAsync(); - return Results.Ok(content.Contains("\"member_found\":true,")); + return content.Contains("\"member_found\":true,") ? Results.Ok() : Results.NotFound(); }) .WithName("ValidateMember"); diff --git a/src/Registration/Registration.API/Controllers/RegistrationController.cs b/src/Registration/Registration.API/Controllers/RegistrationController.cs index 44e3d1a..fca730b 100644 --- a/src/Registration/Registration.API/Controllers/RegistrationController.cs +++ b/src/Registration/Registration.API/Controllers/RegistrationController.cs @@ -19,7 +19,7 @@ namespace Registration.API.Controllers } else { - return NoContent(); + return NotFound(); } }