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