refactor: Format comments in MoveTelemetryServiceTokenToTelemetryIngestionKey migration for clarity

This commit is contained in:
Nawaz Dhandala
2026-01-10 09:29:27 +00:00
parent 54b1a74dc2
commit abd9741337
2 changed files with 17 additions and 16 deletions

View File

@@ -13,19 +13,18 @@ export default class AddTelemetryServiceColor extends DataMigrationBase {
public override async migrate(): Promise<void> {
// get all the users with email isVerified true.
const services: Array<Service> =
await ServiceService.findBy({
query: {},
select: {
_id: true,
serviceColor: true,
},
limit: LIMIT_MAX,
skip: 0,
props: {
isRoot: true,
},
});
const services: Array<Service> = await ServiceService.findBy({
query: {},
select: {
_id: true,
serviceColor: true,
},
limit: LIMIT_MAX,
skip: 0,
props: {
isRoot: true,
},
});
for (const service of services) {
if (!service.serviceColor) {

View File

@@ -6,9 +6,11 @@ export default class MoveTelemetryServiceTokenToTelemetryIngestionKey extends Da
}
public override async migrate(): Promise<void> {
// This migration is no longer needed as the telemetryServiceToken field
// has been removed from the Service model. The migration was used to move
// tokens from TelemetryService to TelemetryIngestionKey.
/*
* This migration is no longer needed as the telemetryServiceToken field
* has been removed from the Service model. The migration was used to move
* tokens from TelemetryService to TelemetryIngestionKey.
*/
return;
}