mirror of
https://github.com/dergigi/boris.git
synced 2025-12-18 23:24:22 +01:00
fix: resolve TypeScript type errors in bookmark hydration promises
Add .then() handlers to convert Promise<NostrEvent[]> to Promise<void> for compatibility with Promise<void>[] array type.
This commit is contained in:
@@ -230,7 +230,9 @@ class BookmarkController {
|
|||||||
onProgress()
|
onProgress()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
).catch(() => {
|
).then(() => {
|
||||||
|
// Query completed successfully
|
||||||
|
}).catch(() => {
|
||||||
// Silent error - individual query failed
|
// Silent error - individual query failed
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
@@ -265,7 +267,9 @@ class BookmarkController {
|
|||||||
onProgress()
|
onProgress()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
).catch(() => {
|
).then(() => {
|
||||||
|
// Query completed successfully
|
||||||
|
}).catch(() => {
|
||||||
// Silent error - individual query failed
|
// Silent error - individual query failed
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user