Skip to content

Is destroy() an async method like hinted at in the docs? #1049

@benwick

Description

@benwick

Environment

https://pinia-orm.codedredd.de/guide/repository/deleting-data#deleting-data-1

In a code example you write const user = await useRepo(User).destroy(2) ...

Reproduction

... but the method is not returning a promise. I have logged and I have looked in the code.

Describe the bug

The code example might be wrong and misleading.

Additional context

No response

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions