mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
refactor: Format comments in MoveTelemetryServiceTokenToTelemetryIngestionKey migration for clarity
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user