From 4190682a167e611c217a745e373407fcfecb1ea2 Mon Sep 17 00:00:00 2001 From: JianBo He Date: Tue, 30 Jan 2024 15:29:46 +0800 Subject: [PATCH] chore: fix the data type and example value for cluster invitation result --- apps/emqx_management/src/emqx_mgmt_api_cluster.erl | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/apps/emqx_management/src/emqx_mgmt_api_cluster.erl b/apps/emqx_management/src/emqx_mgmt_api_cluster.erl index 686a0be71..6a56ef454 100644 --- a/apps/emqx_management/src/emqx_mgmt_api_cluster.erl +++ b/apps/emqx_management/src/emqx_mgmt_api_cluster.erl @@ -206,11 +206,10 @@ fields(node_invitation_succeed) -> [ {finished_at, ?HOCON( - emqx_utils_calendar:epoch_millisecond(), + binary(), #{ - desc => - <<"The time of the async invitation result is received, millisecond precision epoch">>, - example => <<"1705044829915">> + desc => <<"The time of the async invitation result is received">>, + example => <<"2024-01-30T15:24:39.355+08:00">> } )} ]; @@ -223,11 +222,10 @@ fields(node_invitation_in_progress) -> )}, {started_at, ?HOCON( - emqx_utils_calendar:epoch_millisecond(), + binary(), #{ - desc => - <<"The start timestamp of the invitation, millisecond precision epoch">>, - example => <<"1705044829915">> + desc => <<"The time of the async invitation is started">>, + example => <<"2024-01-30T15:24:39.355+08:00">> } )} ].