diff --git a/config/_development.json b/config/_development.json index a0739d1..625fa7c 100644 --- a/config/_development.json +++ b/config/_development.json @@ -4,7 +4,7 @@ "jobs": [ { "name": "daily-summary", - "config": "0 0 * * * ?", + "config": "0 0/1 * * * ?", "url": "/services/jobs/daily-summary" } ] diff --git a/dbs/social_ma.mv.db b/dbs/social_ma.mv.db index 20d98f2..b77c747 100644 Binary files a/dbs/social_ma.mv.db and b/dbs/social_ma.mv.db differ diff --git a/server/services/jobs/daily-summary.js b/server/services/jobs/daily-summary.js index 7257018..78331e7 100644 --- a/server/services/jobs/daily-summary.js +++ b/server/services/jobs/daily-summary.js @@ -52,6 +52,13 @@ for (const dbComunidade of dbComunidades) { .set("total", dbPublicacoes.getInt("total")) ) + smtp.attachment( + "logo.png", + "image/png", + _app.file("public/images/logo.png"), + "logo" + ) + smtp.send() _log.info("Pessoa:", dbPessoa) diff --git a/server/templates/dashboard.html b/server/templates/dashboard.html index 71572bc..460f812 100644 --- a/server/templates/dashboard.html +++ b/server/templates/dashboard.html @@ -21,6 +21,8 @@ +

Titulo _{request=nome}

+
diff --git a/server/templates/emails/daily-summary.html b/server/templates/emails/daily-summary.html index 895407a..224ef36 100644 --- a/server/templates/emails/daily-summary.html +++ b/server/templates/emails/daily-summary.html @@ -1,7 +1,8 @@
+
_{data=comunidade} -

Olá _{req=pessoa},

+

Olá _{data=pessoa},

Hoje houve _{data=total} novas publicações.
\ No newline at end of file