Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove notifications dev logging #859

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
}
Loading