summaryrefslogtreecommitdiff
path: root/service/pixelated/user_agent.py
diff options
context:
space:
mode:
authorBruno Wagner Goncalves <bwagner@thoughtworks.com>2014-09-25 20:44:01 -0300
committerBruno Wagner Goncalves <bwagner@thoughtworks.com>2014-09-25 20:44:01 -0300
commitd7f4798a90ffc933bed76030ce965e7dc1ead55a (patch)
tree0cefe383e505b57f823727f196ccc82fdfb1b97c /service/pixelated/user_agent.py
parente10893d493d3b6c38f1336e82c5cc0f0a2b5c053 (diff)
Drafts working now for both create and update
Diffstat (limited to 'service/pixelated/user_agent.py')
-rw-r--r--service/pixelated/user_agent.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/pixelated/user_agent.py b/service/pixelated/user_agent.py
index aa4b8a86..e6533ea6 100644
--- a/service/pixelated/user_agent.py
+++ b/service/pixelated/user_agent.py
@@ -72,8 +72,8 @@ def send_mail():
@app.route('/mails', methods=['PUT'])
def update_draft():
- _mail = PixelatedMail.from_dict(request.json)
- ident = mail_service.update_draft(_mail)
+ _mail = InputMail.from_dict(request.json)
+ ident = mail_service.update_draft(request.json['ident'], _mail).ident
return respond_json({'ident': ident})