revertet changing names of organisation attachment_count

This commit is contained in:
Kyattsukuro 2026-05-08 13:40:30 +02:00
parent 8f0cee604a
commit 4c7df15075
2 changed files with 3 additions and 3 deletions

View File

@ -602,7 +602,7 @@ async fn organizations_overview(_token: AdminToken, conn: DbConn) -> ApiResult<H
org["collection_count"] = json!(Collection::count_by_org(&o.uuid, &conn).await);
org["group_count"] = json!(Group::count_by_org(&o.uuid, &conn).await);
org["event_count"] = json!(Event::count_by_org(&o.uuid, &conn).await);
org["attachmentCount"] = json!(Attachment::count_by_org(&o.uuid, &conn).await);
org["attachment_count"] = json!(Attachment::count_by_org(&o.uuid, &conn).await);
org["attachment_size"] = json!(get_display_size(Attachment::size_by_org(&o.uuid, &conn).await));
organizations_json.push(org);
}

View File

@ -33,8 +33,8 @@
<span class="d-block">{{cipher_count}}</span>
</td>
<td>
<span class="d-block"><strong>Amount:</strong> {{attachmentCount}}</span>
{{#if attachmentCount}}
<span class="d-block"><strong>Amount:</strong> {{attachment_count}}</span>
{{#if attachment_count}}
<span class="d-block"><strong>Size:</strong> {{attachment_size}}</span>
{{/if}}
</td>