From bb5cfa758cbfebc3f9154f6e46d8b0c3f06344b2 Mon Sep 17 00:00:00 2001 From: Nicolas Cantu Date: Fri, 9 Jan 2026 02:11:12 +0100 Subject: [PATCH] lint fix wip --- hooks/useArticlePayment.ts | 16 ++--- lib/helpers/writeObjectHelper.ts | 12 ++-- lib/nostr.ts | 26 +++++-- lib/nostrZapVerification.ts | 8 ++- lib/notificationService.ts | 8 ++- lib/objectCache.ts | 47 ++++++------ lib/payment.ts | 52 +++++++------- lib/paymentPollingCore.ts | 50 ++++++++----- lib/publishLog.ts | 43 +++++------ lib/publishWorker.ts | 17 ++++- lib/purchaseQueries.ts | 2 +- lib/reviewTipQueries.ts | 2 +- lib/seriesQueries.ts | 2 +- lib/sponsoringPaymentTracking.ts | 40 ++++++----- lib/sponsoringQueries.ts | 2 +- lib/swSyncHandler.ts | 13 +++- lib/writeOrchestrator.ts | 47 +++++++----- lib/writeService.ts | 118 +++++++++++++++++++------------ lib/zapVerification.ts | 22 +++--- 19 files changed, 315 insertions(+), 212 deletions(-) diff --git a/hooks/useArticlePayment.ts b/hooks/useArticlePayment.ts index 889fa85..de2b94e 100644 --- a/hooks/useArticlePayment.ts +++ b/hooks/useArticlePayment.ts @@ -24,14 +24,14 @@ export function useArticlePayment( const checkPaymentStatus = async (hash: string, userPubkey: string): Promise => { try { - const hasPaid = await paymentService.waitForArticlePayment( - hash, - article.id, - article.pubkey, - article.zapAmount, - userPubkey, - 300000 - ) + const hasPaid = await paymentService.waitForArticlePayment({ + paymentHash: hash, + articleId: article.id, + articlePubkey: article.pubkey, + amount: article.zapAmount, + recipientPubkey: userPubkey, + timeout: 300000, + }) if (hasPaid) { const content = await nostrService.getPrivateContent(article.id, article.pubkey) diff --git a/lib/helpers/writeObjectHelper.ts b/lib/helpers/writeObjectHelper.ts index 58ed038..52ef3b4 100644 --- a/lib/helpers/writeObjectHelper.ts +++ b/lib/helpers/writeObjectHelper.ts @@ -48,16 +48,16 @@ export async function writeObjectToCache(params: WriteObjectParams): Promise