refactor to data

This commit is contained in:
Dan-314
2026-04-11 12:28:33 +01:00
parent b9aa9ebf23
commit 6fe755ea75
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ jobs:
try { response = await fetch(url); }
catch (e) { console.error('Failed to fetch from ' + slug + ': ' + e.message); break; }
for (const script of response.scripts) {
for (const script of response.data) {
// Write script file using JSON.stringify (matches Postgres jsonb::text format)
const content = JSON.stringify(script.raw_json);
fs.writeFileSync(path.join('scripts', script.hash + '.json'), content);
+1 -1
View File
@@ -89,7 +89,7 @@ GET /api/export-scripts?cursor={id}&limit=100
Response:
{
"scripts": [
"data": [
{
"hash": "md5-of-raw-json",
"raw_json": [...],