Only update status if protocolId is set (#2310)

This commit is contained in:
ekzyis 2025-07-23 01:49:39 +02:00 committed by GitHub
parent 452fcb3659
commit 2a0dfd7af6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,7 +16,7 @@ export function walletLogger ({
const createdAt = context?.createdAt ?? new Date() const createdAt = context?.createdAt ?? new Date()
delete context?.createdAt delete context?.createdAt
const updateStatus = ['OK', 'ERROR', 'WARNING'].includes(level) && (invoiceId || withdrawalId || context.bolt11 || context?.updateStatus) const updateStatus = protocolId && ['OK', 'ERROR', 'WARNING'].includes(level) && (invoiceId || withdrawalId || context.bolt11 || context?.updateStatus)
delete context?.updateStatus delete context?.updateStatus
try { try {