Skip to content

Make Message createdAt key required #2184

Closed
@brian-xu-vlt

Description

@brian-xu-vlt

Feature Description

  • At the moment Message createdAt is optional

Use Case

  • Making it required would avoid having to deal with possibly missing createdAt date when handling list of messages in our backend:
    • as there is no guaranty the array of messages is sorted in the order they were generated at all time, when looking for the last message from a specific role, the optional gets in the way

Additional context

Proposal PR: #2185

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