cike
9 years agoChampion
API v2 list messages from deleted board
Hi guys,
I'm building a custom message stream component. To get the messages I'm using API v2. On of my queries looks like this:
SELECT * FROM messages WHERE depth = 0 AND conversation.style IN ('forum', 'group') AND conversation.solved = true " + common_order + " LIMIT ${page_size} OFFSET ${offset}
The query response includes a message from a board which was deleted a few months ago. So I get an error while requesting the board information by ID within a nested call:
<#assign board = rest("/boards/id/${message.board.id}?restapi.response_style=view").board />
Error: "No board with dispid found"
Could you image why messages from the deleted board are returned by my query?