From b70dca38cc8bc713370ebf93b27279965e2dee58 Mon Sep 17 00:00:00 2001 From: InfiniteStash <117855276+InfiniteStash@users.noreply.github.com> Date: Fri, 3 Jan 2025 18:48:05 +0000 Subject: [PATCH] Fix scene creation notifications being sent for scene modifications --- pkg/manager/notifications/notifications.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/manager/notifications/notifications.go b/pkg/manager/notifications/notifications.go index 8c93abaf8..2c64c6b14 100644 --- a/pkg/manager/notifications/notifications.go +++ b/pkg/manager/notifications/notifications.go @@ -9,7 +9,7 @@ func OnApplyEdit(fac models.Repo, edit *models.Edit) { nqb := fac.Notification() eqb := fac.Edit() if edit.Status == models.VoteStatusEnumAccepted.String() || edit.Status == models.VoteStatusEnumImmediateAccepted.String() && edit.Operation == models.OperationEnumCreate.String() { - if edit.TargetType == models.TargetTypeEnumScene.String() { + if edit.TargetType == models.TargetTypeEnumScene.String() && edit.Operation == models.OperationEnumCreate.String() { sceneID, err := eqb.FindSceneID(edit.ID) if err != nil || sceneID == nil { return