Only update status if protocolId is set (#2310)
This commit is contained in:
parent
452fcb3659
commit
2a0dfd7af6
@ -16,7 +16,7 @@ export function walletLogger ({
|
||||
const createdAt = context?.createdAt ?? new Date()
|
||||
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
|
||||
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user