Skip to content
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

Remove redundant awaits #68

Open
jamesspearsv opened this issue Dec 31, 2024 · 0 comments
Open

Remove redundant awaits #68

jamesspearsv opened this issue Dec 31, 2024 · 0 comments
Labels
fix This is working but needs fixed or improved

Comments

@jamesspearsv
Copy link
Owner

const [count_total, count_type, count_location, count_format] =
await Promise.all([
await queries.countRowsInTable("interactions"),
await queries.countAllInteractionByGroup("type"),
await queries.countAllInteractionByGroup("location"),
await queries.countAllInteractionByGroup("format"),
]);

@jamesspearsv jamesspearsv added the fix This is working but needs fixed or improved label Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix This is working but needs fixed or improved
Projects
None yet
Development

No branches or pull requests

1 participant