Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7743c3178e | |||
| da141311ff |
@@ -40,7 +40,7 @@ public class NotificationsFeatureTests(CommonFixture fixture, ITestOutputHelper
|
|||||||
{
|
{
|
||||||
DateRange range = new()
|
DateRange range = new()
|
||||||
{
|
{
|
||||||
From = DateOnly.FromDateTime(new DateTime(2026, 05, 01, 0, 0, 0, DateTimeKind.Utc)),
|
From = DateOnly.FromDateTime(new DateTime(2026, 04, 01, 0, 0, 0, DateTimeKind.Utc)),
|
||||||
To = DateOnly.FromDateTime(DateTime.UtcNow),
|
To = DateOnly.FromDateTime(DateTime.UtcNow),
|
||||||
MaxRecords = 10
|
MaxRecords = 10
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -97,12 +97,8 @@ public class NotificationService(IDbContextFactory<ShopDbContext> contextFactory
|
|||||||
|
|
||||||
notification.Processed = request.Processed;
|
notification.Processed = request.Processed;
|
||||||
notification.UpdatedAt = DateTime.UtcNow;
|
notification.UpdatedAt = DateTime.UtcNow;
|
||||||
|
notification.HasError = request.HasError;
|
||||||
if (request.HasError)
|
notification.Errors = request.Errors;
|
||||||
{
|
|
||||||
notification.HasError = request.HasError;
|
|
||||||
notification.Errors = request.Errors;
|
|
||||||
}
|
|
||||||
|
|
||||||
return await context.SaveChangesAsync(cancellationToken) > 0
|
return await context.SaveChangesAsync(cancellationToken) > 0
|
||||||
? Result.Ok()
|
? Result.Ok()
|
||||||
|
|||||||
Reference in New Issue
Block a user