fix: Missing user scope in collection mailer

This commit is contained in:
Tom Moor
2022-04-06 21:35:45 -07:00
parent 4f358032eb
commit f10cfbbd9e
2 changed files with 12 additions and 1 deletions

View File

@@ -73,6 +73,15 @@ type Sort = CollectionSort;
},
],
},
withUser: () => ({
include: [
{
model: User,
required: true,
as: "user",
},
],
}),
withMembership: (userId: string) => ({
include: [
{