Improve logging of mails during development mode

This commit is contained in:
Jonas Lochmann
2023-04-03 02:00:00 +02:00
parent dc5e2baebd
commit 1e5da1b95e
+5 -2
View File
@@ -1,6 +1,6 @@
/*
* server component for the TimeLimit App
* Copyright (C) 2019 - 2022 Jonas Lochmann
* Copyright (C) 2019 - 2023 Jonas Lochmann
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
@@ -72,7 +72,10 @@ function createMailTemplateSender (templateName: string) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const data = (info as any).message
console.log(JSON.stringify(JSON.parse(data), null, 2))
console.log(JSON.stringify({
...JSON.parse(data),
params
}, null, 2))
}
resolve()