ensure created_by_id is being persisted correctly

(also make sure it's well tested 🎉 )
This commit is contained in:
Leo Hemsted
2017-06-23 15:56:47 +01:00
parent 1ba175f8a6
commit 350133e6db
3 changed files with 11 additions and 4 deletions

View File

@@ -52,7 +52,6 @@ def persist_notification(
simulated=False,
created_by_id=None
):
notification_created_at = created_at or datetime.utcnow()
notification = Notification(
@@ -70,7 +69,8 @@ def persist_notification(
job_id=job_id,
job_row_number=job_row_number,
client_reference=client_reference,
reference=reference
reference=reference,
created_by_id=created_by_id
)
if notification_type == SMS_TYPE: