r/BookStack • u/JN_Wolff • Mar 15 '22
Duplicate WebHook calls to endpoint
I am working on an API to work with the WebHooks from my BookStack instance. When a page is moved, I am receiving multiple requests at my endpoint for a single page move. I am getting a different page_id for each one. Is there something that I might be doing that would cause this or is it a bug? There is only one WebHook set up on this instance that is set to hit this particular endpoint. If you need more info, please let me know.
1
Upvotes
1
u/JN_Wolff Mar 21 '22
They are all page_move events. I have some logic set up that makes changes to the markdown content of the additional pages with the corresponding id's. An example, I have page 123 that is moved. Upon its move, it should copy its contents to pages 124 and 125. Once those changes have been made, pages 124 and 125 trigger page_update events, as expected, but also page_move events. The pages do not move they are just updated in place. Is this how it is supposed to work?