diff --git a/src/Core/NotificationCenter/Repositories/INotificationRepository.cs b/src/Core/NotificationCenter/Repositories/INotificationRepository.cs index f710f09c04..177f2ad52e 100644 --- a/src/Core/NotificationCenter/Repositories/INotificationRepository.cs +++ b/src/Core/NotificationCenter/Repositories/INotificationRepository.cs @@ -40,5 +40,5 @@ public interface INotificationRepository : IRepository /// /// A collection of notifications associated with the task that are not marked as deleted. /// - Task> GetActiveByTaskIdAsync(Guid taskId); + Task> GetNonDeletedByTaskIdAsync(Guid taskId); } diff --git a/src/Core/Vault/Commands/MarkNotificationsForTaskAsDeletedCommand.cs b/src/Core/Vault/Commands/MarkNotificationsForTaskAsDeletedCommand.cs index a6ed1e1429..4482107a89 100644 --- a/src/Core/Vault/Commands/MarkNotificationsForTaskAsDeletedCommand.cs +++ b/src/Core/Vault/Commands/MarkNotificationsForTaskAsDeletedCommand.cs @@ -28,7 +28,7 @@ public class MarkNotificationsForTaskAsDeletedCommand : IMarkNotificationsForTas public async Task MarkAsDeletedAsync(Guid taskId) { - var notifications = await _notificationRepository.GetActiveByTaskIdAsync(taskId); + var notifications = await _notificationRepository.GetNonDeletedByTaskIdAsync(taskId); foreach (var notification in notifications) { diff --git a/src/Infrastructure.Dapper/NotificationCenter/Repositories/NotificationRepository.cs b/src/Infrastructure.Dapper/NotificationCenter/Repositories/NotificationRepository.cs index 0846f7e224..e3f52441a8 100644 --- a/src/Infrastructure.Dapper/NotificationCenter/Repositories/NotificationRepository.cs +++ b/src/Infrastructure.Dapper/NotificationCenter/Repositories/NotificationRepository.cs @@ -57,7 +57,7 @@ public class NotificationRepository : Repository, INotificat }; } - public async Task> GetActiveByTaskIdAsync(Guid taskId) + public async Task> GetNonDeletedByTaskIdAsync(Guid taskId) { await using var connection = new SqlConnection(ConnectionString); diff --git a/src/Infrastructure.EntityFramework/NotificationCenter/Repositories/NotificationRepository.cs b/src/Infrastructure.EntityFramework/NotificationCenter/Repositories/NotificationRepository.cs index 463bb1c36d..0140fde0a2 100644 --- a/src/Infrastructure.EntityFramework/NotificationCenter/Repositories/NotificationRepository.cs +++ b/src/Infrastructure.EntityFramework/NotificationCenter/Repositories/NotificationRepository.cs @@ -75,7 +75,7 @@ public class NotificationRepository : Repository> GetActiveByTaskIdAsync(Guid taskId) + public async Task> GetNonDeletedByTaskIdAsync(Guid taskId) { await using var scope = ServiceScopeFactory.CreateAsyncScope();