Skip to content

Commit

Permalink
feat: using tradeSummery on processAccepted (#1479)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tolfx committed Jan 27, 2023
1 parent 68e2a7b commit bf889a7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/classes/MyHandler/offer/accepted/processAccepted.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,15 @@ export default function processAccepted(
offer.data('processOfferTime')) as number;
const timeTakenToCounterOffer = offer.data('processCounterTime') as number | undefined;

bot.handler.webhookHandler.tradeSummery(
offer,
accepted,
bot,
timeTakenToComplete,
timeTakenToProcessOrConstruct,
timeTakenToCounterOffer,
isOfferSent
);
if (isWebhookEnabled) {
void sendTradeSummary(
offer,
Expand Down

0 comments on commit bf889a7

Please sign in to comment.