Skip to content

MEDIUM: Push time filtering to SQL in getRecentItems #39

Description

@Brad-Edwards

Severity: Medium (Quality M2)

`alerts.ts` and `briefing.ts` fetch items via `getRecentItems({ limit: N })` then filter client-side by time window. Unnecessary data transferred.

Recommendation: Add a `since` parameter to `getRecentItems` and push time filter to the WHERE clause.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions