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

@ -54,7 +54,7 @@ User.associate = models => {
};
// Instance methods
User.prototype.collectionIds = async function() {
User.prototype.collectionIds = async function(paranoid: boolean = true) {
let models = await Collection.findAll({
attributes: ['id', 'private'],
where: { teamId: this.teamId },
@ -67,6 +67,7 @@ User.prototype.collectionIds = async function() {
required: false,
},
],
paranoid,
});
// Filter collections that are private and don't have an association