-Fix typo

- return template from dao not the history
This commit is contained in:
Rebecca Law
2018-01-10 13:32:54 +00:00
parent e59d6d470e
commit 03deb804b0
2 changed files with 2 additions and 2 deletions

View File

@@ -60,7 +60,7 @@ def dao_update_template_reply_to(template_id, reply_to):
"service_letter_contact_id": template.service_letter_contact_id
})
db.session.add(history)
return history
return template
@transactional

View File

@@ -144,7 +144,7 @@ def test_dao_update_tempalte_reply_to_some_to_some(sample_service, sample_user):
assert updated_history.updated_at == updated_history.updated_at
def test_dao_update_tempalte_reply_to_some_to_none(sample_service, sample_user):
def test_dao_update_template_reply_to_some_to_none(sample_service, sample_user):
letter_contact = create_letter_contact(sample_service, 'Edinburgh, ED1 1AA')
data = {
'name': 'Sample Template',