Skip to content

Fix adminResolveReport in Admin UI #2069

@Mephistic

Description

@Mephistic

Describe the bug
The adminResolveReport is currently broken - it looks like the firebase function encounters a type error due to the Firestore Timestamp issue on the nextDigestAt field on profile documents, so admins cannot resolve reports through the Admin UI.

To Reproduce
Steps to reproduce the behavior:

  1. Report a testimony (by navigating to a bill with testimony and filling out a Report)
  2. As an admin user, navigate to the Admin page (at /admin)
  3. Attempt to resolve the reported testimony from step 1
  4. See error

Expected behavior
The Admin resolve report flow should work correctly - so completing the form on the Admin page should either reject the report (and leave the testimony in place) or accept the report (and delete the reported testimony).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ready for DevelopmentAutomatically assigned to issues that are ready to be picked upbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions