Skip to content

[Backend] — Market Featured Fields Admin Endpoint #1618

Description

@Olowodarey

Problem
markets featured fields exist but there's no clean admin endpoint to set featured order/expiry with validation.

Requirements

  • Admin endpoint to set featured flag, order, and expiry with bounds checks.
  • Auto-unfeature past-expiry markets on read.
  • Tests: setting/clearing featured fields; expiry auto-unfeatures.

Acceptance Criteria

  • Admins manage featured markets with validated ordering and expiry. Covered by tests.

Files

  • backend/src/markets/markets.controller.ts
  • backend/src/admin
  • backend/src/migrations/1774821713259-AddFeaturedFieldsToMarket.ts

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions