wiki icon indicating copy to clipboard operation
wiki copied to clipboard

Update page mutation without specifying tags

Open splumhoff opened this issue 2 years ago • 1 comments

If no tags are submitted e.g. via mutation{pages {update()}} the update will fail. This fixes the issue, same solution as in the pages create method:

https://github.com/requarks/wiki/blob/b5b4b0880ae26f4b137242267b6674b51af8688c/server/models/pages.js#L327

splumhoff avatar Apr 05 '22 07:04 splumhoff

You're missing the scenario where you want to remove all tags. Your current code would skip saving because the array length is 0.

NGPixel avatar Apr 07 '22 04:04 NGPixel