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" }); } } }