From 0cbdae4de6ee1a1f8aa63f8f548ce0d3daa4771d Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Tue, 17 Mar 2026 14:19:49 +0100 Subject: [PATCH] fix: remove 'source' from ScriptCard literal, fix pbScripts import extension --- src/app/_components/DownloadedScriptsTab.tsx | 1 - src/server/services/autoSyncService.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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`);