fix: templates incorrectly linking when in a team

This commit is contained in:
Lucas Smith
2024-03-11 01:46:19 +00:00
parent 1a23744d2a
commit c2cf25b138
3 changed files with 26 additions and 4 deletions

View File

@ -37,6 +37,12 @@ export const findTemplates = async ({
where: whereFilter,
include: {
templateDocumentData: true,
team: {
select: {
id: true,
url: true,
},
},
Field: true,
Recipient: true,
},