Skip to content

Commit

Permalink
Fix scene creation notifications being sent for scene modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
InfiniteStash committed Jan 3, 2025
1 parent f6619cb commit b70dca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/manager/notifications/notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b70dca3

Please sign in to comment.