Skip to content

Commit

Permalink
fix(certificates): fix response format for "get certificate template"…
Browse files Browse the repository at this point in the history
… endpoint
  • Loading branch information
azasypkin committed Oct 30, 2023
1 parent e37bcf5 commit b35196f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/certificates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ pub async fn certificates_handle_action<DR: DnsResolver, ET: EmailTransport>(

UtilsActionResult::json(json!({
"template": template,
"user_share": users
"userShare": users
.get_user_share_by_resource(
user.id,
&SharedResource::certificate_template(resource_id),
Expand Down Expand Up @@ -533,6 +533,7 @@ pub mod tests {
}

#[derive(Deserialize)]
#[serde(rename_all = "camelCase")]
struct TemplateWrapper {
template: CertificateTemplate,
user_share: Option<UserShareWrapper>,
Expand Down

0 comments on commit b35196f

Please sign in to comment.