Closed kurko closed 8 years ago
Thanks for point this out, but most of the relationship handling has been overhauled in the relationships
branch. I do think this bug still exists there though, where updateRelationships
never finishes if there are no relationships.
I expect to merge the relationships
branch tomorrow, so I'm not going to merge this in now.
:+1: I'm using my fork for the time being.
I merged in the relationships branch, I think this bug is no longer present there. If you decide to try it and run into it again, let me know.
I'm gonna give it a try and let you know.
When you do a PATCH and the resource has no relationships, given it's a PATCH, the code for updating relationships is executed, according to the code below:
The
updateRelationship()
method fulfill promises except when the resource has notoOne
ortoMany
relationships (case
'sdefault
branch).