fix(dashboard): improvements to notifications templates

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-12-29 22:48:06 +01:00
parent e5b5a8af62
commit c12eb80867
9 changed files with 149 additions and 59 deletions

View File

@@ -21,19 +21,19 @@ export const notificationRouter = createTRPCRouter({
return db.notification.findMany({
where: {
projectId: input.projectId,
sendToApp: true,
},
orderBy: {
createdAt: 'desc',
},
include: {
integration: {
include: {
notificationRules: {
select: {
name: true,
},
},
select: {
name: true,
},
},
notificationRule: {
select: {
name: true,
},
},
},