mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-04-19 19:01:19 +00:00
Fix cron endpoint
This commit is contained in:
parent
41ae0d6112
commit
c3c8dad116
@ -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 = [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user