From 9a64c7a95bdab4b239986e402f53383c8b0de01f Mon Sep 17 00:00:00 2001 From: AveryMadness Date: Tue, 23 Jan 2024 22:39:33 -0700 Subject: [PATCH] some stuff --- Server/Source/Routes/Library.ts | 4 ++-- src/routes/AdminTrackList.tsx | 10 ---------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/Server/Source/Routes/Library.ts b/Server/Source/Routes/Library.ts index f543854..64031c2 100644 --- a/Server/Source/Routes/Library.ts +++ b/Server/Source/Routes/Library.ts @@ -55,7 +55,7 @@ ValidateBody(j.object({ })), async (req, res) => { if (req.user?.BookmarkedSongs.findIndex(x => x.ID.toLowerCase() === req.body.SongID.toLowerCase()) !== -1) - return res.status(400).json({ errorMessage: "This song is already bookmarked." }); + return res.status(400).json({ errorMessage: "You're already subscribed to this song." }); const SongData = await Song.findOne({ where: { ID: req.body.SongID } }); if (!SongData) @@ -75,7 +75,7 @@ ValidateBody(j.object({ async (req, res) => { const idx = req.user!.BookmarkedSongs.findIndex(x => x.ID.toLowerCase() === req.body.SongID.toLowerCase()); if (idx === -1) - return res.status(400).json({ errorMessage: "This song is not bookmarked." }); + return res.status(400).json({ errorMessage: "You arent subscribed to this song." }); req.user?.BookmarkedSongs.splice(idx, 1); req.user?.save(); diff --git a/src/routes/AdminTrackList.tsx b/src/routes/AdminTrackList.tsx index 0a7422f..b326ff0 100644 --- a/src/routes/AdminTrackList.tsx +++ b/src/routes/AdminTrackList.tsx @@ -26,16 +26,6 @@ export function AdminTrackList() { { tracks.map(x => { return -