Skip to content

emitModelEvent does not return the promise #45

@loppear

Description

@loppear

So code like await model.create(obj) doesn't have any way to wait on post-processing (by e.g. searcher), or to catch the errors caused by a model.create event handler.

Unlikely anything depends on this today, but changing it would potentially degrade response performance. (handlers could still be written to return immediately rather than their own promised result, so it would be possible to keep current behavior for those with long/inconsequential handlers)

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