Fixes: 500 error when attempting to load a deleted document from view

This commit is contained in:
Tom Moor
2017-09-13 23:04:58 -07:00
parent 2bfeb78359
commit 229cd3271a
2 changed files with 15 additions and 0 deletions

View File

@ -43,6 +43,7 @@ router.post('documents.viewed', auth(), pagination(), async ctx => {
include: [
{
model: Document,
required: true,
include: [
{
model: Star,