fix: remove 'source' from ScriptCard literal, fix pbScripts import extension

This commit is contained in:
CanbiZ (MickLesk)
2026-03-17 14:19:49 +01:00
parent cdcd1cd10b
commit 0cbdae4de6
2 changed files with 1 additions and 2 deletions

View File

@@ -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
});

View File

@@ -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`);