fixed error il PatchLoanEndpoint.cs

This commit is contained in:
2025-11-23 11:48:06 +01:00
parent 673cec682f
commit 019686cf41

View File

@@ -24,7 +24,7 @@ public class PatchLoanEndpoint(LibraryDbContext database) : Endpoint<PatchLoanDt
return;
}
if (req.EffectiveReturningDate <= DateOnly.FromDateTime(DateTime.Now))
if (req.EffectiveReturningDate < DateOnly.FromDateTime(DateTime.Now))
{
await Send.StringAsync("Erreur de date. La date est inférieure à la date actuelle.", 400);
return;