From 19858c131a059c834f1056a3651c5d291e83fe66 Mon Sep 17 00:00:00 2001 From: kennyg37 Date: Thu, 25 Apr 2024 09:53:15 +0200 Subject: [PATCH] fixing bug at subRoutes.ts --- backend/src/routes/subRoutes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/routes/subRoutes.ts b/backend/src/routes/subRoutes.ts index 6694e6b..3a43afd 100644 --- a/backend/src/routes/subRoutes.ts +++ b/backend/src/routes/subRoutes.ts @@ -16,7 +16,7 @@ router.post('/add', async (req: Request, res: Response) => { subscribedAt: Date.now(), subscribed: true }) - + await info.save(); res.json('Subscribed successfully') })