Skip to content

Commit 4d7c537

Browse files
rsiminelmboudet
andauthored
fix database creation validation email (#609)
* fix database creation validation email * changelog --------- Co-authored-by: mboudet <mateo.boudet@gmail.com>
1 parent a14cd6f commit 4d7c537

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
* Ensure emails have name, destination and subject
66
* Fix bug in TP account deletion
7+
* Fix database creation validation confirmation email
78
* Fix database creation request email title
89
* Remove DB 'size' attribute
910

core/user_db.service.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,11 @@ async function create_db(new_db, user, id) {
123123
}
124124

125125
try {
126+
let owner = await dbsrv.mongo_users().findOne({ uid: new_db.owner });
126127
await maisrv.send_notif_mail(
127128
{
128129
name: 'database_creation',
129-
destinations: [user.email, CONFIG.general.accounts],
130+
destinations: [owner.email, CONFIG.general.accounts],
130131
subject: 'Database creation'
131132
},
132133
{

0 commit comments

Comments
 (0)