Skip to content

Commit

Permalink
feat(notifications): Inserted total emails fireld on autofire API gra…
Browse files Browse the repository at this point in the history
…phql
  • Loading branch information
sergiomario committed Jun 28, 2024
1 parent 0af0585 commit 74ada7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ interface EmailStatsResponse {
bounced: number;
processed: number;
click: number;
total: number;
};
}

Expand Down Expand Up @@ -79,6 +80,7 @@ export default async (_: void, args: EmailStatsArgs): Promise<EmailStatsResponse
bounced: events.filter(event => event.event === "bounced").length,
processed: events.filter(event => event.event === "processed").length,
click: events.filter(event => event.event === "click").length,
total: events.length
};

return { events, stats };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ type EmailStats {
bounced: Int
processed: Int
click: Int
total: Int
}

type EmailStatsResponse {
Expand Down

0 comments on commit 74ada7e

Please sign in to comment.