mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user