Skip to content

Commit

Permalink
Update src/mappings/content/channel.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com>
  • Loading branch information
ignazio-bovo and zeeshanakram3 authored Aug 16, 2023
1 parent d6d062b commit 8ca4a05
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions src/mappings/content/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,18 +366,16 @@ export async function processChannelFundsWithdrawnEvent({

const channelOwnerAccount = await getChannelOwnerAccount(overlay.getEm(), channel)

if (channelOwnerAccount) {
await addNotification(
overlay.getEm(),
channelOwnerAccount,
new ChannelFundsWithdrawn({
recipient: new ChannelRecipient({ channelTitle: channel.title || '' }),
data: new NotificationData({
text: fundsWithdrawnFromChannelText(amount.toString()),
linkPage: channelFundsWithdrawnLink(),
}),
await addNotification(
overlay.getEm(),
channelOwnerAccount,
new ChannelFundsWithdrawn({
recipient: new ChannelRecipient({ channelTitle: channel.title || '' }),
data: new NotificationData({
text: fundsWithdrawnFromChannelText(amount.toString()),
linkPage: channelFundsWithdrawnLink(),
}),
entityEvent
)
}
}),
entityEvent
)
}

0 comments on commit 8ca4a05

Please sign in to comment.