From c08897bdc1cff65862c62347572bbbd01b6c36ac Mon Sep 17 00:00:00 2001 From: Yalagin Date: Thu, 4 May 2023 22:36:36 +0700 Subject: [PATCH] fix(watchlist): fix github code scanning --- server/routes/watchlist.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/routes/watchlist.ts b/server/routes/watchlist.ts index cbf165e29..b8ca0b909 100644 --- a/server/routes/watchlist.ts +++ b/server/routes/watchlist.ts @@ -28,7 +28,8 @@ watchlistRoutes.post( 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' });