From e9eec990c15325e16780375ae0ab7101639eb213 Mon Sep 17 00:00:00 2001 From: pbc1017 Date: Fri, 21 Jun 2024 01:03:33 +0900 Subject: [PATCH] fix: number limit of activity report --- back/routes/activity.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/back/routes/activity.js b/back/routes/activity.js index afb2141..d920b2b 100644 --- a/back/routes/activity.js +++ b/back/routes/activity.js @@ -210,16 +210,16 @@ router.post("/addActivity", async (req, res) => { } try { - const existingActivitiesCount = await Activity.count({ - where: { club_id: clubId }, - }); - - // If there are already 20 or more activities, do not proceed - if (existingActivitiesCount >= 20) { - return res - .status(400) - .send({ message: "Cannot add more than 20 activities." }); - } + // const existingActivitiesCount = await Activity.count({ + // where: { club_id: clubId }, + // }); + + // // If there are already 20 or more activities, do not proceed + // if (existingActivitiesCount >= 20) { + // return res + // .status(400) + // .send({ message: "Cannot add more than 20 activities." }); + // } // Calculate the current date/time in KST (Korean Standard Time) const currentDateTimeUTC = new Date();