Show routine creator in the manage list so managers can see who defined each routine.
EOF Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -41,6 +41,7 @@ export type RoutineTaskRow = Prisma.RoutineTaskGetPayload<{
|
||||
export const routineInclude = {
|
||||
category: true,
|
||||
assignee: userSelect,
|
||||
createdBy: userSelect,
|
||||
team: { select: { id: true, name: true } },
|
||||
} satisfies Prisma.RoutineInclude;
|
||||
|
||||
@@ -186,6 +187,7 @@ export function toRoutineDto(
|
||||
reminderMinutesBefore: row.reminderMinutesBefore,
|
||||
isActive: row.isActive,
|
||||
createdById: row.createdById,
|
||||
createdBy: row.createdBy,
|
||||
recurrenceLabel: describeRecurrence(rule),
|
||||
executionRate: execution.total ? Math.round((execution.done / execution.total) * 100) : null,
|
||||
executionTotal: execution.total,
|
||||
|
||||
Reference in New Issue
Block a user