From 7699a577f991480fc8bc5a6f20a4bf5f811ebf39 Mon Sep 17 00:00:00 2001 From: InfiniteStash <117855276+InfiniteStash@users.noreply.github.com> Date: Wed, 11 Dec 2024 21:23:03 +0100 Subject: [PATCH] Remove notifications dev logging (#859) --- pkg/manager/notifications/notifications.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pkg/manager/notifications/notifications.go b/pkg/manager/notifications/notifications.go index 8dd401f58..47ae7a0b2 100644 --- a/pkg/manager/notifications/notifications.go +++ b/pkg/manager/notifications/notifications.go @@ -2,13 +2,10 @@ package notifications import ( - "fmt" - "github.com/stashapp/stash-box/pkg/models" ) func OnApplyEdit(fac models.Repo, edit *models.Edit) { - fmt.Println("onApplyEdit") nqb := fac.Notification() eqb := fac.Edit() if edit.Status == models.VoteStatusEnumAccepted.String() || edit.Status == models.VoteStatusEnumImmediateAccepted.String() { @@ -26,12 +23,10 @@ func OnApplyEdit(fac models.Repo, edit *models.Edit) { } func OnCancelEdit(fac models.Repo, edit *models.Edit) { - fmt.Println("onCancelEdit") fac.Notification().TriggerFailedEditNotifications(edit.ID) } func OnCreateEdit(fac models.Repo, edit *models.Edit) { - fmt.Println("onCreateEdit") switch edit.TargetType { case models.TargetTypeEnumPerformer.String(): fac.Notification().TriggerPerformerEditNotifications(edit.ID) @@ -43,16 +38,13 @@ func OnCreateEdit(fac models.Repo, edit *models.Edit) { } func OnUpdateEdit(fac models.Repo, edit *models.Edit) { - fmt.Println("onUpdateEdit") fac.Notification().TriggerUpdatedEditNotifications(edit.ID) } func OnEditDownvote(fac models.Repo, edit *models.Edit) { - fmt.Println("onDownvoteEdit") fac.Notification().TriggerDownvoteEditNotifications(edit.ID) } func OnEditComment(fac models.Repo, comment *models.EditComment) { - fmt.Println("onEditComment") fac.Notification().TriggerEditCommentNotifications(comment.ID) }