fromEmail -> mailboxName

This commit is contained in:
Girish Ramakrishnan
2017-02-13 15:15:07 -08:00
parent 5fd667cdaf
commit 3386b99a29
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -203,11 +203,11 @@ function add(id, appStoreId, manifest, location, portBindings, data, callback) {
});
});
// only allocate a mailbox if fromEmail is set
if (data.fromEmail) {
// only allocate a mailbox if mailboxName is set
if (data.mailboxName) {
queries.push({
query: 'INSERT INTO mailboxes (name, ownerId, ownerType) VALUES (?, ?, ?)',
args: [ data.fromEmail, id, mailboxdb.TYPE_APP ]
args: [ data.mailboxName, id, mailboxdb.TYPE_APP ]
});
}