mending contract

This commit is contained in:
Sebastian 2026-02-01 20:37:18 +01:00
parent e4d61fba24
commit 19b32940ec
2 changed files with 2 additions and 2 deletions

View file

@ -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");

View file

@ -19,7 +19,7 @@ namespace Registration.API.Controllers
}
else
{
return NoContent();
return NotFound();
}
}