fix: Error in shares.info endpoint when user originally creating share has been deleted

This commit is contained in:
Tom Moor
2021-03-31 18:04:40 -07:00
parent 7e1b07ef98
commit 2e64972574
2 changed files with 23 additions and 1 deletions

View File

@ -37,7 +37,7 @@ Share.associate = (models) => {
});
Share.addScope("defaultScope", {
include: [
{ association: "user" },
{ association: "user", paranoid: false },
{ association: "document" },
{ association: "team" },
],