mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
fix: update error logging to include error details in data migration classes
refactor: change GenericObject type from Object to object for consistency fix: increase memory limit for eslint commands in package.json
This commit is contained in:
@@ -125,20 +125,20 @@ export default class OTelIngestService {
|
||||
|
||||
const newDbMetric: Metric = Metric.fromJSON(
|
||||
dbMetric.toJSON(),
|
||||
Metric
|
||||
Metric,
|
||||
) as Metric;
|
||||
|
||||
if (datapoint["startTimeUnixNano"]) {
|
||||
newDbMetric.startTimeUnixNano = datapoint["startTimeUnixNano"] as number;
|
||||
newDbMetric.startTime = OneUptimeDate.fromUnixNano(
|
||||
datapoint["startTimeUnixNano"] as number
|
||||
datapoint["startTimeUnixNano"] as number,
|
||||
);
|
||||
}
|
||||
|
||||
if (datapoint["timeUnixNano"]) {
|
||||
newDbMetric.timeUnixNano = datapoint["timeUnixNano"] as number;
|
||||
newDbMetric.time = OneUptimeDate.fromUnixNano(
|
||||
datapoint["timeUnixNano"] as number
|
||||
datapoint["timeUnixNano"] as number,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
||||
type GenericObject = Object;
|
||||
type GenericObject = object;
|
||||
|
||||
export default GenericObject;
|
||||
|
||||
@@ -34,6 +34,7 @@ export default class RefreshOnCallSchedulesToAddCurrentUserOnRoster extends Data
|
||||
logger.error(
|
||||
`Error refreshing current user and handoff time for schedule: ${schedule.id}`,
|
||||
);
|
||||
logger.error(err);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,6 +34,7 @@ export default class RefreshProjectUsers extends DataMigrationBase {
|
||||
logger.error(
|
||||
`Error refreshing project users for project: ${project.id}`,
|
||||
);
|
||||
logger.error(err);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -92,6 +92,7 @@ RunCron(
|
||||
logger.error(
|
||||
`Error refreshing current user and handoff time for schedule: ${onCallSchedule.id?.toString()}`,
|
||||
);
|
||||
logger.error(err);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -37,8 +37,8 @@
|
||||
"prerun": "bash configure.sh",
|
||||
"typeorm": "node --require ts-node/register ./node_modules/typeorm/cli.js",
|
||||
"uninstall": "bash uninstall.sh",
|
||||
"lint": "export NODE_OPTIONS='--max-old-space-size=8096' && npx eslint .",
|
||||
"fix-lint": "export NODE_OPTIONS='--max-old-space-size=8096' && npx eslint . --fix",
|
||||
"lint": "export NODE_OPTIONS='--max-old-space-size=16384' && npx eslint .",
|
||||
"fix-lint": "export NODE_OPTIONS='--max-old-space-size=16384' && npx eslint . --fix",
|
||||
"fix": "npm run fix-lint",
|
||||
"status-check": "bash ./Tests/Scripts/status-check.sh $npm_config_services",
|
||||
"start": "export $(grep -v '^#' config.env | xargs) && docker compose up --remove-orphans -d $npm_config_services && npm run status-check",
|
||||
|
||||
Reference in New Issue
Block a user