Closed RaphaelWski closed 9 months ago
Hi,
Thanks for the detailed ticket! Good catch!
I managed to reproduce it. There actually is a test for it for kind of operation, it just isn't checking if "Child 1" or "Root" is getting updated.
Thanks again. This issue should be fixed starting with v0.2.1. (https://github.com/adamjkb/bark/blob/main/packages/prisma-extension-bark/CHANGELOG.md#021)
Hey,
I have the following structure :
I'm using the
move
operation to get the following result :Here is my request :
Works well but I noticed the
numchild
was not updated (which may be related to the error I get in my next operation ?)Then I rollback my changes (using the same request) :
And move Child 2 again to get the following result :
Here I get the following error :
Failed to move organization : TypeError: siblings is not iterable
Looks like I can't move an item to a parent that has no existing child ?