Refactor SCIM migrations and models; update formatting and improve readability

- Added missing comma in AllModelTypes array in Index.ts.
- Refactored MigrationName1754304193228 to improve query formatting and readability.
- Refactored MigrationName1754315774827 for consistency in formatting.
- Updated migration index file to include new migration.
- Standardized string quotes in Queue.ts for consistency.
- Cleaned up SCIMAuthorization.ts by removing unnecessary whitespace and improving log formatting.
- Refactored StartServer.ts to standardize content-type header handling.
- Improved formatting in SCIM.tsx for better readability and consistency.
- Refactored Metrics.ts to standardize queueSize extraction and type checking.
- Enhanced Probe.ts logging for clarity and consistency.
This commit is contained in:
Nawaz Dhandala
2025-08-04 21:36:11 +01:00
parent f7d1975ab0
commit aa09bab7c9
12 changed files with 307 additions and 192 deletions

View File

@@ -54,11 +54,11 @@ router.get(
logger.debug(result.data);
// Extract queueSize from the response
let queueSize: number = result.data['queueSize'] as number || 0;
let queueSize: number = (result.data["queueSize"] as number) || 0;
// if string then convert to number
if (typeof queueSize === 'string') {
if (typeof queueSize === "string") {
const parsedQueueSize = parseInt(queueSize, 10);
if (!isNaN(parsedQueueSize)) {
queueSize = parsedQueueSize;