Fix cron endpoint

This commit is contained in:
austinkelsay 2024-10-23 14:50:51 -05:00
parent 41ae0d6112
commit c3c8dad116
No known key found for this signature in database
GPG Key ID: 44CB4EC6D9F2FA02

View File

@ -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 = [];