diff --git a/libs/dal/src/repositories/notification-template/notification-template.repository.ts b/libs/dal/src/repositories/notification-template/notification-template.repository.ts index b8e14a234b8..ff5da05be56 100644 --- a/libs/dal/src/repositories/notification-template/notification-template.repository.ts +++ b/libs/dal/src/repositories/notification-template/notification-template.repository.ts @@ -214,7 +214,10 @@ export class NotificationTemplateRepository extends BaseRepository< active: active, }; - const items = await this.MongooseModel.find(requestQuery).populate('notificationGroup').read('secondaryPreferred'); + const items = await this.MongooseModel.find(requestQuery) + .populate('steps.template', { type: 1 }) + .populate('notificationGroup') + .read('secondaryPreferred'); return this.mapEntities(items); }