lint fix wip

This commit is contained in:
Nicolas Cantu 2026-01-07 04:21:54 +01:00
parent dace103da8
commit e0c025908b
3 changed files with 3 additions and 2 deletions

View File

@ -89,3 +89,4 @@ export async function extractAndWriteObject<T extends { hash?: string; index?: n
return true return true
} }

View File

@ -105,3 +105,4 @@ export function useSyncProgress(options: UseSyncProgressOptions = {}): UseSyncPr
stopMonitoring, stopMonitoring,
} }
} }

View File

@ -465,11 +465,10 @@ class NostrService {
const { objectCache } = await import('./objectCache') const { objectCache } = await import('./objectCache')
const objectTypes: Array<import('./objectCache').ObjectType> = ['author', 'series', 'publication', 'review', 'purchase', 'sponsoring', 'review_tip', 'payment_note'] const objectTypes: Array<import('./objectCache').ObjectType> = ['author', 'series', 'publication', 'review', 'purchase', 'sponsoring', 'review_tip', 'payment_note']
// First try to find in unpublished objects (faster)
for (const objectType of objectTypes) {
// Load writeService once // Load writeService once
const { writeService } = await import('./writeService') const { writeService } = await import('./writeService')
// First try to find in unpublished objects (faster)
for (const objectType of objectTypes) { for (const objectType of objectTypes) {
try { try {
const unpublished = await objectCache.getUnpublished(objectType) const unpublished = await objectCache.getUnpublished(objectType)