Skip to content

Commit

Permalink
fix(notifications): correctly send tv auto approval notifications
Browse files Browse the repository at this point in the history
fixes #1041
  • Loading branch information
sct committed Feb 27, 2021
1 parent e9f2fe9 commit 537850f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions server/routes/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,7 @@ requestRoutes.post(

const request = new MediaRequest({
type: MediaType.TV,
media: {
id: media.id,
} as Media,
media,
requestedBy: requestUser,
// If the user is an admin or has the "auto approve" permission, automatically approve the request
status:
Expand Down

0 comments on commit 537850f

Please sign in to comment.