diff --git a/src/WMS.Web.Repositories/SubscribeNotificationRepositories.cs b/src/WMS.Web.Repositories/SubscribeNotificationRepositories.cs index 0667b906..2bb1f155 100644 --- a/src/WMS.Web.Repositories/SubscribeNotificationRepositories.cs +++ b/src/WMS.Web.Repositories/SubscribeNotificationRepositories.cs @@ -143,14 +143,14 @@ namespace WMS.Web.Repositories { if (ids == null) { - return await _context.SubscribeNotification + return await _context.SubscribeNotification.Where(w => w.IsDelete != true) .AsNoTracking().ToListAsync(); } else { return await _context.SubscribeNotification .AsNoTracking() - .Where(w => ids.Contains(w.Id)) + .Where(w => ids.Contains(w.Id) && w.IsDelete != true) .ToListAsync(); } }