Skip to content

MUUID.from() fails with CastError #52

@TisRyno

Description

@TisRyno

v2.4.3 introduces:
CastError: Cast to Buffer failed for value "new Binary(Buffer.from("bd8b82fd91604ebc8010f5026c0b1644", "hex"), 4)" at path "centre" for model "Queue"

The code where it fails is as simple as:

const rows = await MQueue.find({
    centre: MUUID.from(uuid),
    deletedAt: null
})

I can confirm that reverting to v2.4.2 fixes the issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions