lint fix wip
This commit is contained in:
parent
dace103da8
commit
e0c025908b
@ -89,3 +89,4 @@ export async function extractAndWriteObject<T extends { hash?: string; index?: n
|
|||||||
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -105,3 +105,4 @@ export function useSyncProgress(options: UseSyncProgressOptions = {}): UseSyncPr
|
|||||||
stopMonitoring,
|
stopMonitoring,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user