From eb22a6302ecfe67234f7634e88e2ad33b4bfb4be Mon Sep 17 00:00:00 2001 From: Son Date: Wed, 10 Mar 2021 22:39:33 +0100 Subject: [PATCH] rename creation -> deletion for GET /api/custom_domains/:custom_domain_id/trash --- app/api/views/custom_domain.py | 2 +- docs/api.md | 2 +- tests/api/test_custom_domain.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/api/views/custom_domain.py b/app/api/views/custom_domain.py index 41679a21..3300a17e 100644 --- a/app/api/views/custom_domain.py +++ b/app/api/views/custom_domain.py @@ -47,7 +47,7 @@ def get_custom_domain_trash(custom_domain_id: int): aliases=[ { "alias": dda.email, - "creation_timestamp": dda.created_at.timestamp, + "deletion_timestamp": dda.created_at.timestamp, } for dda in domain_deleted_aliases ] diff --git a/docs/api.md b/docs/api.md index c586bc94..4fd5952b 100644 --- a/docs/api.md +++ b/docs/api.md @@ -685,7 +685,7 @@ List of deleted alias. "aliases": [ { "alias": "first@test1.org", - "creation_timestamp": 1605464595 + "deletion_timestamp": 1605464595 } ] } diff --git a/tests/api/test_custom_domain.py b/tests/api/test_custom_domain.py index b253b3e0..01c3ecf9 100644 --- a/tests/api/test_custom_domain.py +++ b/tests/api/test_custom_domain.py @@ -57,4 +57,4 @@ def test_get_custom_domain_trash(flask_client): for deleted_alias in r.json["aliases"]: assert deleted_alias["alias"] - assert deleted_alias["creation_timestamp"] > 0 + assert deleted_alias["deletion_timestamp"] > 0