Skip to content

Commit

Permalink
Remove notifications dev logging (#859)
Browse files Browse the repository at this point in the history
  • Loading branch information
InfiniteStash authored Dec 11, 2024
1 parent ed3de5f commit 7699a57
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pkg/manager/notifications/notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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)
Expand All @@ -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)
}

0 comments on commit 7699a57

Please sign in to comment.