Skip to content

Commit

Permalink
Fixes from previous commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
BusterNeece committed Feb 9, 2025
1 parent b0270ef commit fd2b1be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions backend/src/Entity/Api/StationQuota.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,12 @@ final class StationQuota
public bool $is_full;

#[OA\Property]
public int $num_files;
public ?int $num_files = null;

public static function fromStorageLocation(
StorageLocation $storageLocation,
int $numFiles = 0
int|null $numFiles = null
): self {

$record = new self();
$record->used = $storageLocation->getStorageUsed();
$record->used_bytes = (string)$storageLocation->getStorageUsedBytes();
Expand Down
2 changes: 1 addition & 1 deletion frontend/entities/ApiInterfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ export interface ApiStationQuota {
quota?: string | null;
quota_bytes?: string | null;
is_full?: boolean;
num_files?: number;
num_files?: number | null;
}

export type ApiStationRemote = HasLinks & {
Expand Down

0 comments on commit fd2b1be

Please sign in to comment.