fix(watchlist): fix github code scanning
This commit is contained in:
@@ -28,7 +28,8 @@ watchlistRoutes.post<never, Watchlist, Watchlist>(
|
|||||||
switch (error.constructor) {
|
switch (error.constructor) {
|
||||||
case QueryFailedError:
|
case QueryFailedError:
|
||||||
logger.warn('Something wrong with data watchlist', {
|
logger.warn('Something wrong with data watchlist', {
|
||||||
...req.body,
|
tmdbId: req.body.tmdbId,
|
||||||
|
mediaType: req.body.mediaType,
|
||||||
label: 'Watchlist',
|
label: 'Watchlist',
|
||||||
});
|
});
|
||||||
return next({ status: 409, message: 'Something wrong' });
|
return next({ status: 409, message: 'Something wrong' });
|
||||||
|
|||||||
Reference in New Issue
Block a user