diff --git a/js/service/messageservice.js b/js/service/messageservice.js index 41ef0253fc..0cec1f9a56 100644 --- a/js/service/messageservice.js +++ b/js/service/messageservice.js @@ -1,4 +1,4 @@ -/* global Promise, Promsie */ +/* global Promise */ /** * @author Christoph Wurst @@ -300,7 +300,7 @@ define(function(require) { var url = OC.generateUrl('/apps/mail/accounts/{id}/draft', { id: account.get('accountId') }); - return Promsie.resolve($.ajax(url, { + return Promise.resolve($.ajax(url, { type: 'POST', data: { to: message.to,