From c3c8dad11649afb11953f5c08e09d8f4da408bb0 Mon Sep 17 00:00:00 2001 From: austinkelsay Date: Wed, 23 Oct 2024 14:50:51 -0500 Subject: [PATCH] Fix cron endpoint --- src/pages/api/users/subscription/cron.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/api/users/subscription/cron.js b/src/pages/api/users/subscription/cron.js index 0f4a0b0..e047581 100644 --- a/src/pages/api/users/subscription/cron.js +++ b/src/pages/api/users/subscription/cron.js @@ -10,7 +10,7 @@ export default async function handler(req, res) { return res.status(401).json({ error: 'Unauthorized' }); } - if (req.method === 'POST') { + if (req.method === 'GET') { try { const expiredSubscriptions = await findExpiredSubscriptions(); const stillExpired = [];