Skip to content

Proposed change to model function signatures to include request context? #254

Open
@djMax

Description

@djMax

Essentially all calls to the model occur in the context of a request of some sort (literally request in express). I think that context should be the first argument to every model function. This allows the model to safely communicate with "itself" which is very hard to do without a shared context. Happy to do the work, but want some discussion/buy-in first...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions