From 0e0989459dba67c1d0cf8a489d47dbe7a9797270 Mon Sep 17 00:00:00 2001 From: Michael Schramm Date: Sun, 2 May 2021 12:43:30 +0200 Subject: [PATCH] - logic backend components - forms now have multiple notification - switched from mongoose to typeorm, with support right now for postgres and sqlite - colors object removed the "colors" postfix - env list in doc - upgraded all packages --- CHANGELOG.md | 10 ++++++++++ .../submission/submission.notification.service.ts | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e063eca..3e83de6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,12 +9,22 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Added +- logic backend components +- forms now have multiple notification + ### Changed +- switched from mongoose to typeorm, with support right now for postgres and sqlite +- colors object removed the "colors" postfix + ### Fixed +- env list in doc + ### Security +- upgraded all packages + ## [0.9.9] - 2021-02-14 ### Added diff --git a/src/service/submission/submission.notification.service.ts b/src/service/submission/submission.notification.service.ts index c31c85e..f4865f9 100644 --- a/src/service/submission/submission.notification.service.ts +++ b/src/service/submission/submission.notification.service.ts @@ -2,9 +2,9 @@ import { MailerService } from '@nestjs-modules/mailer' import { Injectable } from '@nestjs/common' import handlebars from 'handlebars' import htmlToText from 'html-to-text' +import mjml2html from 'mjml' import { PinoLogger } from 'nestjs-pino/dist' import { SubmissionEntity } from '../../entity/submission.entity' -import mjml2html from 'mjml' @Injectable() export class SubmissionNotificationService { @@ -28,7 +28,7 @@ export class SubmissionNotificationService { handlebars.compile( notification.htmlTemplate )({ - // TODO add varialbes + // TODO add variables }), { minify: true