Fix ReferenceError: handleAdminTopupOptions is not defined by removing unnecessary await
This commit is contained in:
@@ -18480,7 +18480,7 @@ async function routeInternal(req, res, url, pathname) {
|
||||
if (req.method === 'GET' && pathname === '/api/admin/topups/options') {
|
||||
const session = requireAdminAuth(req, res);
|
||||
if (!session) return;
|
||||
return await handleAdminTopupOptions(req, res);
|
||||
return handleAdminTopupOptions(req, res);
|
||||
}
|
||||
if (req.method === 'GET' && pathname === '/api/admin/topups/confirm') {
|
||||
const session = requireAdminAuth(req, res);
|
||||
|
||||
Reference in New Issue
Block a user