Skip to content

Fix: items handler returns 500 on empty database #2

Description

@wbavon

When the database is empty, GET /api/items returns 500 instead of empty array.

Steps to reproduce:

  1. Start fresh server
  2. GET /api/items
  3. Expected: 200 with []
  4. Actual: 500 Internal Server Error

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions