From a60ea1f49de2d4811eee7b35e84fe7e4a6d4a084 Mon Sep 17 00:00:00 2001 From: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com> Date: Fri, 17 Nov 2023 14:14:41 +0100 Subject: [PATCH] V13: Fix AddWebhookDatabaseLock migration (#15250) * Change to proper constant * Update with comments --- .../Migrations/Upgrade/V_13_0_0/AddWebhookDatabaseLock.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_13_0_0/AddWebhookDatabaseLock.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_13_0_0/AddWebhookDatabaseLock.cs index 2254cc1d36..f611e82767 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_13_0_0/AddWebhookDatabaseLock.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_13_0_0/AddWebhookDatabaseLock.cs @@ -20,11 +20,11 @@ public class AddWebhookDatabaseLock : MigrationBase .From() .Where(x => x.Id == Constants.Locks.WebhookLogs); - LockDto? webhookRequestLock = Database.FirstOrDefault(sql); + LockDto? webhookLogsLock = Database.FirstOrDefault(sql); - if (webhookRequestLock is null) + if (webhookLogsLock is null) { - Database.Insert(Constants.DatabaseSchema.Tables.Lock, "id", false, new LockDto { Id = Constants.Locks.WebhookRequest, Name = "WebhookRequest" }); + Database.Insert(Constants.DatabaseSchema.Tables.Lock, "id", false, new LockDto { Id = Constants.Locks.WebhookLogs, Name = "WebhookLogs" }); } } }