fix: remove 'source' from ScriptCard literal, fix pbScripts import extension
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
@@ -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`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user