mirror of
https://github.com/Shineii86/AniKotoAPI.git
synced 2026-10-22 10:55:10 +00:00
v1.9.1: Fix 4 critical bugs from sed operations
- apiRoutes.js: Moved imports outside comment block (caused 500 on all endpoints) - test.js: Deleted orphaned duplicate code after function close - random.controller.js: Removed stray closing brace breaking try/catch - cache.helper.js: Added missing MAX_CACHE_SIZE constant These bugs were introduced by sed insert commands placing code in wrong positions. The API was returning 500 FUNCTION_INVOCATION_FAILED on all endpoints.
This commit is contained in:
@@ -71,20 +71,6 @@ async function runTest(test) {
|
||||
failed++;
|
||||
}
|
||||
}
|
||||
const data = await res.json();
|
||||
|
||||
if (data.success === true && data.results) {
|
||||
console.log(`✅ ${test.name}`);
|
||||
passed++;
|
||||
} else {
|
||||
console.log(`❌ ${test.name} - Invalid response format`);
|
||||
failed++;
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(`❌ ${test.name} - ${error.message}`);
|
||||
failed++;
|
||||
}
|
||||
}
|
||||
|
||||
async function runAll() {
|
||||
console.log(`\n🧪 Running ${tests.length} tests...\n`);
|
||||
|
||||
Reference in New Issue
Block a user