fix: Update telemetryServiceId references to serviceId in ExceptionUtil for consistency

This commit is contained in:
Nawaz Dhandala 2026-01-09 18:39:53 +00:00
parent 2dc2f3bf36
commit f016c02dfb
No known key found for this signature in database
GPG key ID: 96C5DCA24769DBCA

View file

@ -240,7 +240,7 @@ export default class ExceptionUtil {
query: {
fingerprint: fingerprint,
projectId: exception.projectId,
telemetryServiceId: exception.serviceId,
serviceId: exception.serviceId,
},
select: {
_id: true,
@ -275,7 +275,7 @@ export default class ExceptionUtil {
const newExceptionStatus: TelemetryException = new TelemetryException();
newExceptionStatus.fingerprint = exception.fingerprint;
newExceptionStatus.projectId = exception.projectId;
newExceptionStatus.telemetryServiceId = exception.serviceId;
newExceptionStatus.serviceId = exception.serviceId;
newExceptionStatus.lastSeenAt = OneUptimeDate.now();
newExceptionStatus.firstSeenAt = OneUptimeDate.now();
newExceptionStatus.occuranceCount = 1;