Skip to content

Commit

Permalink
Add db size unit and jsdoc
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>
  • Loading branch information
licitdev and DanielBiegler committed May 9, 2024
1 parent bd44bba commit b4645f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions api/src/database/helpers/schema/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ export abstract class SchemaHelper extends DatabaseHelper {
return uuid; // no-op by default
}

/**
* @returns Size of the database in bytes
*/
async getDatabaseSize(): Promise<number> {
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion api/src/telemetry/types/report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export interface TelemetryReport {
fields_total: number;

/**
* Size of the database
* Size of the database in bytes
*/
database_size: number;
}

0 comments on commit b4645f7

Please sign in to comment.