Closed dcromster closed 3 years ago
You haven't given enough information to diagnose this.
But I notice in "object with params for insert record" there's parentID: 0
. That is likely the cause.
I'm closing this for now as it doesn't look like it's a bug in sequelize-hierarchy from info provided. If you can produce a repeatable reproduction that demonstrates otherwise, I'll be happy to re-open and investigate.
Hello!
If set ParentId to null, then when requested, the null is exceeded to 0.
part of error text:
My object with params for insert record:
{ name: 'test', parentID: 0, type: 0, kind: 'string', **parentId: null** }
Node: v12.16.1 sequelize: 5.10.1 sequelize-hierarchy: a2.0.4