diff --git a/src/app/_components/DownloadedScriptsTab.tsx b/src/app/_components/DownloadedScriptsTab.tsx index 78ed6c2..78d3de4 100644 --- a/src/app/_components/DownloadedScriptsTab.tsx +++ b/src/app/_components/DownloadedScriptsTab.tsx @@ -203,7 +203,6 @@ export function DownloadedScriptsTab({ if (!scriptMap.has(script.slug)) { scriptMap.set(script.slug, { ...script, - source: "github" as const, isDownloaded: false, // Will be updated by status check isUpToDate: false, // Will be updated by status check }); diff --git a/src/server/services/autoSyncService.js b/src/server/services/autoSyncService.js index ad86c55..b384b89 100644 --- a/src/server/services/autoSyncService.js +++ b/src/server/services/autoSyncService.js @@ -352,7 +352,7 @@ export class AutoSyncService { // Step 1: Fetch all scripts from PocketBase (always up to date) console.log('Fetching scripts from PocketBase...'); - const { getAllScripts: pbGetAllScripts } = await import('./pbScripts.js'); + const { getAllScripts: pbGetAllScripts } = await import('./pbScripts'); const pbScripts = await pbGetAllScripts(); console.log(`Retrieved ${pbScripts.length} scripts from PocketBase`);