Skip to content

refactor(api): count by retention #8095

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 15, 2025
Merged

refactor(api): count by retention #8095

merged 6 commits into from
Apr 15, 2025

Conversation

djabarovgeorge
Copy link
Contributor

What changed? Why was the change needed?

Screenshots

Expand for optional sections

Related enterprise PR

Special notes for your reviewer

Copy link

netlify bot commented Apr 8, 2025

Deploy Preview for dashboard-v2-novu-staging canceled.

Name Link
🔨 Latest commit b9d455c
🔍 Latest deploy log https://app.netlify.com/sites/dashboard-v2-novu-staging/deploys/67fd74500637be00081395cb

);

const counts = await Promise.all(getCountPromises);
const result = counts.map((count, index) => ({ count, filter: command.filters[index] }));

return { data: result };
}

private async getRetentionPeriod(organizationId: string): Promise<Date> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If not mistaken, this code exists elsewhere in the code base, so let's extract it to an API-specific utility.

@djabarovgeorge djabarovgeorge merged commit 733cc2f into next Apr 15, 2025
29 checks passed
@djabarovgeorge djabarovgeorge deleted the countbyretention branch April 15, 2025 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants