template-for-typescript-projects
    Preparing search index...

    MongoDB implementation of AlertRepository using Mongoose.

    Implements

    Index

    Constructors

    Methods

    • Checks if an unread alert exists for a specific threshold created after the given timestamp.

      Parameters

      • thresholdId: string

        The threshold identifier to check.

      • since: Date

        The timestamp to check against (inclusive).

      Returns Promise<boolean>

      true if a recent unread alert exists.