fix: Deleted collections not showing in audit log

feat: Show titles of objects in audit log
fix: modelId not saved with share events
fix: List item squashes avatar at small screen sizes
This commit is contained in:
Tom Moor
2019-08-07 20:52:59 -07:00
parent 0f028812e1
commit 978eda3ad2
6 changed files with 37 additions and 11 deletions

View File

@ -12,11 +12,12 @@ const { authorize } = policy;
const router = new Router();
router.post('events.list', auth(), pagination(), async ctx => {
let { sort = 'updatedAt', direction, auditLog = false } = ctx.body;
let { sort = 'createdAt', direction, auditLog = false } = ctx.body;
if (direction !== 'ASC') direction = 'DESC';
const user = ctx.state.user;
const collectionIds = await user.collectionIds();
const paranoid = false;
const collectionIds = await user.collectionIds(paranoid);
let where = {
name: Event.ACTIVITY_EVENTS,