Skip to content

Update voyages to automatically set arrival date #132

Description

@JonBacc

Since routes now have duration_nights stored, we can automatically set arrival date, once we know departure date. Note that in the api-endpoint, we can override the arrival date by setting one. If a POST voyage doesn't set an arrival date, it's automatically retrieved from the routes.duration_nights by adding the amount of nights to departure_date.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions