Skip to content

Commit

Permalink
fix(watchlist): fix github code scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
yalagin committed May 4, 2023
1 parent 469f64d commit c08897b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/routes/watchlist.ts
Expand Up @@ -28,7 +28,8 @@ watchlistRoutes.post<never, Watchlist, Watchlist>(
switch (error.constructor) {
case QueryFailedError:
logger.warn('Something wrong with data watchlist', {
...req.body,
tmdbId: req.body.tmdbId,
mediaType: req.body.mediaType,
label: 'Watchlist',
});
return next({ status: 409, message: 'Something wrong' });
Expand Down

0 comments on commit c08897b

Please sign in to comment.