There is an error on this line
|
if (typeof statement === 'JoinClause' || statement?.grouping === 'join') { |
From my understanding if this _statement is a string here but still looking closer so not 100%.
But typeof will evaluate to 'string' not 'JoinClause' if so and if it is an object which the next thing is assuming then type of will return 'object'.
Maybe you are looking for instanceOf? Either way there is something not right with this line.
There is an error on this line
sutando/src/soft-deleting-scope.js
Line 6 in 17bad79
From my understanding if this _statement is a string here but still looking closer so not 100%.
But typeof will evaluate to 'string' not 'JoinClause' if so and if it is an object which the next thing is assuming then type of will return 'object'.
Maybe you are looking for instanceOf? Either way there is something not right with this line.