lint fix wip
This commit is contained in:
parent
7c0dc68304
commit
81f6d303dd
@ -57,7 +57,7 @@ export async function sendPrivateContentAfterPayment(
|
|||||||
const paymentHash = await resolvePaymentHashForPurchaseNote({
|
const paymentHash = await resolvePaymentHashForPurchaseNote({
|
||||||
articlePaymentHash: article.paymentHash,
|
articlePaymentHash: article.paymentHash,
|
||||||
articleId,
|
articleId,
|
||||||
zapReceiptId,
|
...(zapReceiptId ? { zapReceiptId } : {}),
|
||||||
})
|
})
|
||||||
const category = normalizePurchaseNoteCategory(article.category)
|
const category = normalizePurchaseNoteCategory(article.category)
|
||||||
|
|
||||||
@ -83,9 +83,7 @@ export async function sendPrivateContentAfterPayment(
|
|||||||
return logPaymentResult(result, articleId, recipientPubkey, amount)
|
return logPaymentResult(result, articleId, recipientPubkey, amount)
|
||||||
}
|
}
|
||||||
|
|
||||||
function normalizePurchaseNoteCategory(
|
function normalizePurchaseNoteCategory(category: string | undefined): 'science-fiction' | 'scientific-research' | undefined {
|
||||||
category: 'author-presentation' | 'science-fiction' | 'scientific-research' | string
|
|
||||||
): 'science-fiction' | 'scientific-research' | undefined {
|
|
||||||
if (category === 'science-fiction' || category === 'scientific-research') {
|
if (category === 'science-fiction' || category === 'scientific-research') {
|
||||||
return category
|
return category
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user