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