fix: Doc history does not load when linked to directly (race condition)
This commit is contained in:
@ -439,7 +439,7 @@ router.post('documents.revisions', auth(), pagination(), async ctx => {
|
||||
authorize(user, 'read', document);
|
||||
|
||||
const revisions = await Revision.findAll({
|
||||
where: { documentId: id },
|
||||
where: { documentId: document.id },
|
||||
order: [[sort, direction]],
|
||||
offset: ctx.state.pagination.offset,
|
||||
limit: ctx.state.pagination.limit,
|
||||
|
Reference in New Issue
Block a user