From d15e76956491e8aab29d092a770a91683e6d02f4 Mon Sep 17 00:00:00 2001 From: Nick Krantz Date: Thu, 29 May 2025 08:40:41 -0500 Subject: [PATCH] refactor "Active" to "NonDeleted" for stored procedure --- .../NotificationCenter/Repositories/NotificationRepository.cs | 2 +- ...tiveByTaskId.sql => Notification_ReadNonDeletedByTaskId.sql} | 2 +- ...ql => 2025-05-29_00_Notification_ReadNonDeletedByTaskId.sql} | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename src/Sql/NotificationCenter/dbo/Stored Procedures/{Notification_ReadActiveByTaskId.sql => Notification_ReadNonDeletedByTaskId.sql} (80%) rename util/Migrator/DbScripts/{2025-05-28_00_Notification_ReadActiveByTaskId.sql => 2025-05-29_00_Notification_ReadNonDeletedByTaskId.sql} (78%) diff --git a/src/Infrastructure.Dapper/NotificationCenter/Repositories/NotificationRepository.cs b/src/Infrastructure.Dapper/NotificationCenter/Repositories/NotificationRepository.cs index e3f52441a8..9718c7377e 100644 --- a/src/Infrastructure.Dapper/NotificationCenter/Repositories/NotificationRepository.cs +++ b/src/Infrastructure.Dapper/NotificationCenter/Repositories/NotificationRepository.cs @@ -62,7 +62,7 @@ public class NotificationRepository : Repository, INotificat await using var connection = new SqlConnection(ConnectionString); var results = await connection.QueryAsync( - "[dbo].[Notification_ReadActiveByTaskId]", + "[dbo].[Notification_ReadNonDeletedByTaskId]", new { TaskId = taskId, diff --git a/src/Sql/NotificationCenter/dbo/Stored Procedures/Notification_ReadActiveByTaskId.sql b/src/Sql/NotificationCenter/dbo/Stored Procedures/Notification_ReadNonDeletedByTaskId.sql similarity index 80% rename from src/Sql/NotificationCenter/dbo/Stored Procedures/Notification_ReadActiveByTaskId.sql rename to src/Sql/NotificationCenter/dbo/Stored Procedures/Notification_ReadNonDeletedByTaskId.sql index a00334d7b4..cc6b906b16 100644 --- a/src/Sql/NotificationCenter/dbo/Stored Procedures/Notification_ReadActiveByTaskId.sql +++ b/src/Sql/NotificationCenter/dbo/Stored Procedures/Notification_ReadNonDeletedByTaskId.sql @@ -1,4 +1,4 @@ -CREATE PROCEDURE [dbo].[Notification_ReadActiveByTaskId] +CREATE PROCEDURE [dbo].[Notification_ReadNonDeletedByTaskId] @TaskId UNIQUEIDENTIFIER AS BEGIN diff --git a/util/Migrator/DbScripts/2025-05-28_00_Notification_ReadActiveByTaskId.sql b/util/Migrator/DbScripts/2025-05-29_00_Notification_ReadNonDeletedByTaskId.sql similarity index 78% rename from util/Migrator/DbScripts/2025-05-28_00_Notification_ReadActiveByTaskId.sql rename to util/Migrator/DbScripts/2025-05-29_00_Notification_ReadNonDeletedByTaskId.sql index 2a894bccef..1f08ceb318 100644 --- a/util/Migrator/DbScripts/2025-05-28_00_Notification_ReadActiveByTaskId.sql +++ b/util/Migrator/DbScripts/2025-05-29_00_Notification_ReadNonDeletedByTaskId.sql @@ -1,4 +1,4 @@ -CREATE OR ALTER PROCEDURE [dbo].[Notification_ReadActiveByTaskId] +CREATE OR ALTER PROCEDURE [dbo].[Notification_ReadNonDeletedByTaskId] @TaskId UNIQUEIDENTIFIER AS BEGIN