From 95a316236e3651c27d995fcdc8093ae0d1f96125 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Sat, 12 Oct 2024 10:02:26 +0200 Subject: [bugfix] Account.last_status_at is a date, not datetime (#3419) * [bugfix] Account.last_status_at is a date, not datetime Fix #3418 * update swagger --- internal/api/client/admin/reportsget_test.go | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'internal/api/client/admin/reportsget_test.go') diff --git a/internal/api/client/admin/reportsget_test.go b/internal/api/client/admin/reportsget_test.go index 5213dd574..e3d0a535d 100644 --- a/internal/api/client/admin/reportsget_test.go +++ b/internal/api/client/admin/reportsget_test.go @@ -186,7 +186,7 @@ func (suite *ReportsGetTestSuite) TestReportsGetAll() { "followers_count": 0, "following_count": 0, "statuses_count": 3, - "last_status_at": "2021-09-11T09:40:37.000Z", + "last_status_at": "2021-09-11", "emojis": [], "fields": [] } @@ -231,7 +231,7 @@ func (suite *ReportsGetTestSuite) TestReportsGetAll() { "followers_count": 1, "following_count": 1, "statuses_count": 8, - "last_status_at": "2021-07-28T08:40:37.000Z", + "last_status_at": "2021-07-28", "emojis": [], "fields": [ { @@ -289,7 +289,7 @@ func (suite *ReportsGetTestSuite) TestReportsGetAll() { "followers_count": 1, "following_count": 1, "statuses_count": 4, - "last_status_at": "2021-10-20T10:41:37.000Z", + "last_status_at": "2021-10-20", "emojis": [], "fields": [], "enable_rss": true, @@ -343,7 +343,7 @@ func (suite *ReportsGetTestSuite) TestReportsGetAll() { "followers_count": 1, "following_count": 1, "statuses_count": 4, - "last_status_at": "2021-10-20T10:41:37.000Z", + "last_status_at": "2021-10-20", "emojis": [], "fields": [], "enable_rss": true, @@ -410,7 +410,7 @@ func (suite *ReportsGetTestSuite) TestReportsGetAll() { "followers_count": 1, "following_count": 1, "statuses_count": 8, - "last_status_at": "2021-07-28T08:40:37.000Z", + "last_status_at": "2021-07-28", "emojis": [], "fields": [ { @@ -468,7 +468,7 @@ func (suite *ReportsGetTestSuite) TestReportsGetAll() { "followers_count": 0, "following_count": 0, "statuses_count": 3, - "last_status_at": "2021-09-11T09:40:37.000Z", + "last_status_at": "2021-09-11", "emojis": [], "fields": [] } @@ -515,7 +515,7 @@ func (suite *ReportsGetTestSuite) TestReportsGetAll() { "followers_count": 0, "following_count": 0, "statuses_count": 3, - "last_status_at": "2021-09-11T09:40:37.000Z", + "last_status_at": "2021-09-11", "emojis": [], "fields": [] }, @@ -660,7 +660,7 @@ func (suite *ReportsGetTestSuite) TestReportsGetCreatedByAccount() { "followers_count": 1, "following_count": 1, "statuses_count": 8, - "last_status_at": "2021-07-28T08:40:37.000Z", + "last_status_at": "2021-07-28", "emojis": [], "fields": [ { @@ -718,7 +718,7 @@ func (suite *ReportsGetTestSuite) TestReportsGetCreatedByAccount() { "followers_count": 0, "following_count": 0, "statuses_count": 3, - "last_status_at": "2021-09-11T09:40:37.000Z", + "last_status_at": "2021-09-11", "emojis": [], "fields": [] } @@ -765,7 +765,7 @@ func (suite *ReportsGetTestSuite) TestReportsGetCreatedByAccount() { "followers_count": 0, "following_count": 0, "statuses_count": 3, - "last_status_at": "2021-09-11T09:40:37.000Z", + "last_status_at": "2021-09-11", "emojis": [], "fields": [] }, @@ -910,7 +910,7 @@ func (suite *ReportsGetTestSuite) TestReportsGetTargetAccount() { "followers_count": 1, "following_count": 1, "statuses_count": 8, - "last_status_at": "2021-07-28T08:40:37.000Z", + "last_status_at": "2021-07-28", "emojis": [], "fields": [ { @@ -968,7 +968,7 @@ func (suite *ReportsGetTestSuite) TestReportsGetTargetAccount() { "followers_count": 0, "following_count": 0, "statuses_count": 3, - "last_status_at": "2021-09-11T09:40:37.000Z", + "last_status_at": "2021-09-11", "emojis": [], "fields": [] } @@ -1015,7 +1015,7 @@ func (suite *ReportsGetTestSuite) TestReportsGetTargetAccount() { "followers_count": 0, "following_count": 0, "statuses_count": 3, - "last_status_at": "2021-09-11T09:40:37.000Z", + "last_status_at": "2021-09-11", "emojis": [], "fields": [] }, -- cgit v1.2.3