mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-06-06 18:31:00 +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' });
|
return res.status(401).json({ error: 'Unauthorized' });
|
||||||
}
|
}
|
||||||
|
|
||||||
if (req.method === 'POST') {
|
if (req.method === 'GET') {
|
||||||
try {
|
try {
|
||||||
const expiredSubscriptions = await findExpiredSubscriptions();
|
const expiredSubscriptions = await findExpiredSubscriptions();
|
||||||
const stillExpired = [];
|
const stillExpired = [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user