@solidstarters/solid-core 1.2.151 → 1.2.153
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dtos/create-scheduled-job.dto.d.ts +1 -0
- package/dist/dtos/create-scheduled-job.dto.d.ts.map +1 -1
- package/dist/dtos/create-scheduled-job.dto.js +10 -2
- package/dist/dtos/create-scheduled-job.dto.js.map +1 -1
- package/dist/dtos/update-scheduled-job.dto.d.ts +1 -0
- package/dist/dtos/update-scheduled-job.dto.d.ts.map +1 -1
- package/dist/dtos/update-scheduled-job.dto.js +10 -2
- package/dist/dtos/update-scheduled-job.dto.js.map +1 -1
- package/dist/entities/scheduled-job.entity.d.ts.map +1 -1
- package/dist/entities/scheduled-job.entity.js +1 -0
- package/dist/entities/scheduled-job.entity.js.map +1 -1
- package/dist/repository/scheduled-job.repository.d.ts +1 -15
- package/dist/repository/scheduled-job.repository.d.ts.map +1 -1
- package/dist/repository/scheduled-job.repository.js +28 -20
- package/dist/repository/scheduled-job.repository.js.map +1 -1
- package/dist/seeders/module-metadata-seeder.service.d.ts +2 -1
- package/dist/seeders/module-metadata-seeder.service.d.ts.map +1 -1
- package/dist/seeders/module-metadata-seeder.service.js.map +1 -1
- package/dist/services/computed-fields/entity/alpha-num-external-id-computed-field-provider.d.ts +2 -1
- package/dist/services/computed-fields/entity/alpha-num-external-id-computed-field-provider.d.ts.map +1 -1
- package/dist/services/computed-fields/entity/alpha-num-external-id-computed-field-provider.js +13 -5
- package/dist/services/computed-fields/entity/alpha-num-external-id-computed-field-provider.js.map +1 -1
- package/dist/subscribers/scheduled-job.subscriber.d.ts +1 -1
- package/dist/subscribers/scheduled-job.subscriber.d.ts.map +1 -1
- package/dist/subscribers/scheduled-job.subscriber.js +5 -4
- package/dist/subscribers/scheduled-job.subscriber.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/rebuild.sh +1 -1
- package/src/dtos/create-scheduled-job.dto.ts +7 -13
- package/src/dtos/update-scheduled-job.dto.ts +7 -14
- package/src/entities/scheduled-job.entity.ts +1 -0
- package/src/repository/scheduled-job.repository.ts +46 -35
- package/src/seeders/module-metadata-seeder.service.ts +2 -1
- package/src/services/computed-fields/entity/alpha-num-external-id-computed-field-provider.ts +34 -16
- package/src/subscribers/scheduled-job.subscriber.ts +9 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solidstarters/solid-core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.153",
|
|
4
4
|
"description": "This module is a NestJS module containing all the required core providers required by a Solid application",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
package/rebuild.sh
CHANGED
|
@@ -7,62 +7,56 @@ export class CreateScheduledJobDto {
|
|
|
7
7
|
@IsString()
|
|
8
8
|
@ApiProperty()
|
|
9
9
|
scheduleName: string;
|
|
10
|
-
|
|
11
10
|
@IsNotEmpty()
|
|
12
11
|
@IsBoolean()
|
|
13
12
|
@ApiProperty()
|
|
14
13
|
isActive: boolean = false;
|
|
15
|
-
|
|
16
14
|
@IsNotEmpty()
|
|
17
15
|
@IsString()
|
|
18
16
|
@ApiProperty()
|
|
19
17
|
frequency: string;
|
|
20
|
-
|
|
21
18
|
@IsOptional()
|
|
22
19
|
@IsDate()
|
|
23
20
|
@ApiProperty()
|
|
24
21
|
startTime: Date;
|
|
25
|
-
|
|
26
22
|
@IsOptional()
|
|
27
23
|
@IsDate()
|
|
28
24
|
@ApiProperty()
|
|
29
25
|
endTime: Date;
|
|
30
|
-
|
|
31
26
|
@IsOptional()
|
|
32
27
|
@IsDate()
|
|
33
28
|
@ApiProperty()
|
|
34
29
|
startDate: Date;
|
|
35
|
-
|
|
36
30
|
@IsOptional()
|
|
37
31
|
@IsDate()
|
|
38
32
|
@ApiProperty()
|
|
39
33
|
endDate: Date;
|
|
40
|
-
|
|
41
34
|
@IsOptional()
|
|
42
35
|
@IsInt()
|
|
43
36
|
@ApiProperty()
|
|
44
37
|
dayOfMonth: number;
|
|
45
|
-
|
|
46
38
|
@IsOptional()
|
|
47
39
|
@IsDate()
|
|
48
40
|
@ApiProperty()
|
|
49
41
|
lastRunAt: Date;
|
|
50
|
-
|
|
51
42
|
@IsOptional()
|
|
52
43
|
@IsDate()
|
|
53
44
|
@ApiProperty()
|
|
54
45
|
nextRunAt: Date;
|
|
55
|
-
|
|
56
46
|
@IsOptional()
|
|
57
47
|
@IsString()
|
|
58
48
|
@ApiProperty()
|
|
59
49
|
dayOfWeek: string;
|
|
60
|
-
|
|
61
50
|
@IsNotEmpty()
|
|
62
51
|
@IsString()
|
|
63
52
|
@ApiProperty()
|
|
64
53
|
job: string;
|
|
65
|
-
|
|
66
|
-
@
|
|
54
|
+
@IsOptional()
|
|
55
|
+
@IsInt()
|
|
56
|
+
@ApiProperty()
|
|
67
57
|
moduleId: number;
|
|
58
|
+
@IsString()
|
|
59
|
+
@IsOptional()
|
|
60
|
+
@ApiProperty()
|
|
61
|
+
moduleUserKey: string;
|
|
68
62
|
}
|
|
@@ -5,71 +5,64 @@ export class UpdateScheduledJobDto {
|
|
|
5
5
|
@IsOptional()
|
|
6
6
|
@IsInt()
|
|
7
7
|
id: number;
|
|
8
|
-
|
|
9
8
|
@IsNotEmpty()
|
|
10
9
|
@IsOptional()
|
|
11
10
|
@IsString()
|
|
12
11
|
@ApiProperty()
|
|
13
12
|
scheduleName: string;
|
|
14
|
-
|
|
15
13
|
@IsNotEmpty()
|
|
16
14
|
@IsOptional()
|
|
17
15
|
@IsBoolean()
|
|
18
16
|
@ApiProperty()
|
|
19
17
|
isActive: boolean;
|
|
20
|
-
|
|
21
18
|
@IsNotEmpty()
|
|
22
19
|
@IsOptional()
|
|
23
20
|
@IsString()
|
|
24
21
|
@ApiProperty()
|
|
25
22
|
frequency: string;
|
|
26
|
-
|
|
27
23
|
@IsOptional()
|
|
28
24
|
@IsDate()
|
|
29
25
|
@ApiProperty()
|
|
30
26
|
startTime: Date;
|
|
31
|
-
|
|
32
27
|
@IsOptional()
|
|
33
28
|
@IsDate()
|
|
34
29
|
@ApiProperty()
|
|
35
30
|
endTime: Date;
|
|
36
|
-
|
|
37
31
|
@IsOptional()
|
|
38
32
|
@IsDate()
|
|
39
33
|
@ApiProperty()
|
|
40
34
|
startDate: Date;
|
|
41
|
-
|
|
42
35
|
@IsOptional()
|
|
43
36
|
@IsDate()
|
|
44
37
|
@ApiProperty()
|
|
45
38
|
endDate: Date;
|
|
46
|
-
|
|
47
39
|
@IsOptional()
|
|
48
40
|
@IsInt()
|
|
49
41
|
@ApiProperty()
|
|
50
42
|
dayOfMonth: number;
|
|
51
|
-
|
|
52
43
|
@IsOptional()
|
|
53
44
|
@IsDate()
|
|
54
45
|
@ApiProperty()
|
|
55
46
|
lastRunAt: Date;
|
|
56
|
-
|
|
57
47
|
@IsOptional()
|
|
58
48
|
@IsDate()
|
|
59
49
|
@ApiProperty()
|
|
60
50
|
nextRunAt: Date;
|
|
61
|
-
|
|
62
51
|
@IsOptional()
|
|
63
52
|
@IsString()
|
|
64
53
|
@ApiProperty()
|
|
65
54
|
dayOfWeek: string;
|
|
66
|
-
|
|
67
55
|
@IsNotEmpty()
|
|
68
56
|
@IsOptional()
|
|
69
57
|
@IsString()
|
|
70
58
|
@ApiProperty()
|
|
71
59
|
job: string;
|
|
72
|
-
|
|
73
|
-
@
|
|
60
|
+
@IsOptional()
|
|
61
|
+
@IsInt()
|
|
62
|
+
@ApiProperty()
|
|
74
63
|
moduleId: number;
|
|
64
|
+
@IsString()
|
|
65
|
+
@IsOptional()
|
|
66
|
+
@ApiProperty()
|
|
67
|
+
moduleUserKey: string;
|
|
75
68
|
}
|
|
@@ -29,6 +29,7 @@ export class ScheduledJob extends CommonEntity {
|
|
|
29
29
|
dayOfWeek: string;
|
|
30
30
|
@Column({ type: "varchar" })
|
|
31
31
|
job: string;
|
|
32
|
+
@Index()
|
|
32
33
|
@ManyToOne(() => ModuleMetadata, { onDelete: "CASCADE", nullable: false })
|
|
33
34
|
@JoinColumn({ referencedColumnName: 'id' })
|
|
34
35
|
module: ModuleMetadata;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Injectable, Logger } from "@nestjs/common";
|
|
2
|
+
import { CreateScheduledJobDto } from "src/dtos/create-scheduled-job.dto";
|
|
2
3
|
import { ModuleMetadata } from "src/entities/module-metadata.entity";
|
|
3
4
|
import { ScheduledJob } from "src/entities/scheduled-job.entity";
|
|
4
5
|
import { SolidRegistry } from "src/helpers/solid-registry";
|
|
@@ -6,21 +7,21 @@ import { CrudHelperService } from "src/services/crud-helper.service";
|
|
|
6
7
|
import { DataSource, Repository } from "typeorm";
|
|
7
8
|
|
|
8
9
|
// This should match whatever DTO structure you’re using in your seeding logic
|
|
9
|
-
export type CreateScheduledJobDto = {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
};
|
|
10
|
+
// export type CreateScheduledJobDto = {
|
|
11
|
+
// scheduleName: string;
|
|
12
|
+
// isActive?: boolean;
|
|
13
|
+
// frequency: string;
|
|
14
|
+
// startTime?: Date;
|
|
15
|
+
// endTime?: Date;
|
|
16
|
+
// startDate?: Date;
|
|
17
|
+
// endDate?: Date;
|
|
18
|
+
// dayOfMonth?: number;
|
|
19
|
+
// lastRunAt?: Date;
|
|
20
|
+
// nextRunAt?: Date;
|
|
21
|
+
// dayOfWeek?: string;
|
|
22
|
+
// job: string;
|
|
23
|
+
// moduleUserKey: string;
|
|
24
|
+
// };
|
|
24
25
|
|
|
25
26
|
@Injectable()
|
|
26
27
|
export class ScheduledJobRepository extends Repository<ScheduledJob> {
|
|
@@ -38,28 +39,38 @@ export class ScheduledJobRepository extends Repository<ScheduledJob> {
|
|
|
38
39
|
* Converts an entity to a plain DTO object.
|
|
39
40
|
*/
|
|
40
41
|
async toDto(scheduledJob: ScheduledJob): Promise<CreateScheduledJobDto> {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
let populatedScheduledJob: ScheduledJob = scheduledJob;
|
|
43
|
+
// If the scheduled job does not have the module relation loaded, load it
|
|
44
|
+
if (!scheduledJob.module) {
|
|
45
|
+
populatedScheduledJob = await this.findOne({
|
|
46
|
+
where: {
|
|
47
|
+
id: scheduledJob.id,
|
|
48
|
+
},
|
|
49
|
+
relations: {
|
|
50
|
+
module: true,
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
}
|
|
45
54
|
|
|
46
|
-
if (!
|
|
47
|
-
|
|
55
|
+
if (!populatedScheduledJob.module) {
|
|
56
|
+
throw new Error(`Module not found for scheduled job ID ${populatedScheduledJob.id}`);
|
|
48
57
|
}
|
|
58
|
+
|
|
49
59
|
return {
|
|
50
|
-
scheduleName:
|
|
51
|
-
isActive:
|
|
52
|
-
frequency:
|
|
53
|
-
startTime:
|
|
54
|
-
endTime:
|
|
55
|
-
startDate:
|
|
56
|
-
endDate:
|
|
57
|
-
dayOfMonth:
|
|
58
|
-
lastRunAt:
|
|
59
|
-
nextRunAt:
|
|
60
|
-
dayOfWeek:
|
|
61
|
-
job:
|
|
62
|
-
moduleUserKey:
|
|
60
|
+
scheduleName: populatedScheduledJob.scheduleName,
|
|
61
|
+
isActive: populatedScheduledJob.isActive,
|
|
62
|
+
frequency: populatedScheduledJob.frequency,
|
|
63
|
+
startTime: populatedScheduledJob.startTime,
|
|
64
|
+
endTime: populatedScheduledJob.endTime,
|
|
65
|
+
startDate: populatedScheduledJob.startDate,
|
|
66
|
+
endDate: populatedScheduledJob.endDate,
|
|
67
|
+
dayOfMonth: populatedScheduledJob.dayOfMonth,
|
|
68
|
+
lastRunAt: populatedScheduledJob.lastRunAt,
|
|
69
|
+
nextRunAt: populatedScheduledJob.nextRunAt,
|
|
70
|
+
dayOfWeek: populatedScheduledJob.dayOfWeek,
|
|
71
|
+
job: populatedScheduledJob.job,
|
|
72
|
+
moduleUserKey: populatedScheduledJob.module.name,
|
|
73
|
+
moduleId: populatedScheduledJob.module.id,
|
|
63
74
|
};
|
|
64
75
|
}
|
|
65
76
|
|
|
@@ -71,7 +82,7 @@ export class ScheduledJobRepository extends Repository<ScheduledJob> {
|
|
|
71
82
|
});
|
|
72
83
|
|
|
73
84
|
if (!moduleEntity) {
|
|
74
|
-
throw new Error(`Module with
|
|
85
|
+
throw new Error(`Module with userKey ${dto.moduleUserKey} not found`);
|
|
75
86
|
}
|
|
76
87
|
|
|
77
88
|
const jobData = {
|
|
@@ -40,7 +40,8 @@ import { SystemFieldsSeederService } from './system-fields-seeder.service';
|
|
|
40
40
|
import { CreateDashboardDto } from 'src/dtos/create-dashboard.dto';
|
|
41
41
|
import { DashboardRepository } from 'src/repository/dashboard.repository';
|
|
42
42
|
// import { CreateScheduledJobDto } from 'src/dtos/create-scheduled-job.dto';
|
|
43
|
-
import { ScheduledJobRepository
|
|
43
|
+
import { ScheduledJobRepository } from 'src/repository/scheduled-job.repository';
|
|
44
|
+
import { CreateScheduledJobDto } from 'src/dtos/create-scheduled-job.dto';
|
|
44
45
|
|
|
45
46
|
@Injectable()
|
|
46
47
|
export class ModuleMetadataSeederService {
|
package/src/services/computed-fields/entity/alpha-num-external-id-computed-field-provider.ts
CHANGED
|
@@ -5,15 +5,17 @@ import { CommonEntity } from 'src/entities/common.entity';
|
|
|
5
5
|
import { ComputedFieldMetadata } from 'src/helpers/solid-registry';
|
|
6
6
|
import { IEntityPreComputeFieldProvider } from 'src/interfaces';
|
|
7
7
|
import { EntityManager } from 'typeorm';
|
|
8
|
-
|
|
8
|
+
import { get } from "lodash";
|
|
9
9
|
export interface AlphaNumExternalIdContext {
|
|
10
|
-
prefix
|
|
11
|
-
length?: number;
|
|
10
|
+
prefix?: string; // alias -> staticPrefix
|
|
11
|
+
length?: number; // Optional: length of the unique code to generate, default is 5
|
|
12
|
+
dynamicFieldPrefix?: string; // NEW: field name on the entity
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
@ComputedFieldProvider()
|
|
15
16
|
@Injectable()
|
|
16
|
-
export class AlphaNumExternalIdComputationProvider<T extends CommonEntity> implements IEntityPreComputeFieldProvider<T, AlphaNumExternalIdContext>
|
|
17
|
+
export class AlphaNumExternalIdComputationProvider<T extends CommonEntity> implements IEntityPreComputeFieldProvider<T, AlphaNumExternalIdContext>
|
|
18
|
+
{
|
|
17
19
|
constructor(
|
|
18
20
|
@InjectEntityManager()
|
|
19
21
|
private readonly entityManager: EntityManager
|
|
@@ -24,14 +26,28 @@ export class AlphaNumExternalIdComputationProvider<T extends CommonEntity> imple
|
|
|
24
26
|
}
|
|
25
27
|
|
|
26
28
|
help(): string {
|
|
27
|
-
return 'Provider used to compute external ID for a CommonEntity.';
|
|
29
|
+
return 'Provider used to compute external ID for a CommonEntity with support for static or dynamic prefix.';
|
|
28
30
|
}
|
|
29
31
|
|
|
30
|
-
async preComputeValue(triggerEntity: T, computedFieldMetadata: ComputedFieldMetadata<AlphaNumExternalIdContext>
|
|
31
|
-
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
async preComputeValue( triggerEntity: T, computedFieldMetadata: ComputedFieldMetadata<AlphaNumExternalIdContext>
|
|
33
|
+
) {
|
|
34
|
+
const { prefix, length, dynamicFieldPrefix } =
|
|
35
|
+
computedFieldMetadata.computedFieldValueProviderCtxt;
|
|
36
|
+
|
|
37
|
+
const codeLength = length || 5;
|
|
38
|
+
|
|
39
|
+
// Determine prefix
|
|
40
|
+
let resolvedPrefix = prefix || '';
|
|
41
|
+
|
|
42
|
+
if (dynamicFieldPrefix) {
|
|
43
|
+
const dynamicValue = get(triggerEntity as any, dynamicFieldPrefix);
|
|
44
|
+
if (dynamicValue) {
|
|
45
|
+
resolvedPrefix = String(dynamicValue).trim().toLowerCase().replace(/\s+/g, '-').replace(/[^a-z0-9\-]/g, '');
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const uniqueCode = await this.generateUniqueExternalId( codeLength, triggerEntity, computedFieldMetadata.fieldName );
|
|
50
|
+
triggerEntity[computedFieldMetadata.fieldName] = resolvedPrefix ? `${resolvedPrefix}-${uniqueCode}` : uniqueCode;
|
|
35
51
|
}
|
|
36
52
|
|
|
37
53
|
private generateRandomCode(length = 5): string {
|
|
@@ -43,10 +59,12 @@ export class AlphaNumExternalIdComputationProvider<T extends CommonEntity> imple
|
|
|
43
59
|
return result;
|
|
44
60
|
}
|
|
45
61
|
|
|
46
|
-
private async isExternalIdUnique(externalId: string, triggerEntity: T, fieldName: string): Promise<boolean> {
|
|
47
|
-
const count = await this.entityManager.count(triggerEntity.constructor
|
|
48
|
-
|
|
49
|
-
|
|
62
|
+
private async isExternalIdUnique( externalId: string, triggerEntity: T, fieldName: string ): Promise<boolean> {
|
|
63
|
+
const count = await this.entityManager.count(triggerEntity.constructor as any,
|
|
64
|
+
{
|
|
65
|
+
where: { [fieldName]: externalId },
|
|
66
|
+
}
|
|
67
|
+
);
|
|
50
68
|
return count === 0;
|
|
51
69
|
}
|
|
52
70
|
|
|
@@ -56,7 +74,7 @@ export class AlphaNumExternalIdComputationProvider<T extends CommonEntity> imple
|
|
|
56
74
|
for (let attempt = 0; attempt < maxAttempts; attempt++) {
|
|
57
75
|
const newId = this.generateRandomCode(codeLength);
|
|
58
76
|
|
|
59
|
-
const isUnique = await this.isExternalIdUnique(newId,
|
|
77
|
+
const isUnique = await this.isExternalIdUnique(newId,triggerEntity,fieldName);
|
|
60
78
|
|
|
61
79
|
if (isUnique) {
|
|
62
80
|
return newId;
|
|
@@ -65,4 +83,4 @@ export class AlphaNumExternalIdComputationProvider<T extends CommonEntity> imple
|
|
|
65
83
|
|
|
66
84
|
throw new Error('Failed to generate a unique external ID after multiple attempts');
|
|
67
85
|
}
|
|
68
|
-
}
|
|
86
|
+
}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { Injectable, Logger } from "@nestjs/common";
|
|
2
2
|
import { InjectDataSource } from "@nestjs/typeorm";
|
|
3
3
|
import * as fs from "fs/promises";
|
|
4
|
+
import { ModuleMetadata } from "src/entities/module-metadata.entity";
|
|
5
|
+
import { ScheduledJob } from "src/entities/scheduled-job.entity";
|
|
6
|
+
import { ModuleMetadataHelperService } from "src/helpers/module-metadata-helper.service";
|
|
7
|
+
import { ScheduledJobRepository } from "src/repository/scheduled-job.repository";
|
|
4
8
|
import {
|
|
5
9
|
DataSource,
|
|
10
|
+
EntityManager,
|
|
6
11
|
EntitySubscriberInterface,
|
|
7
12
|
InsertEvent,
|
|
8
|
-
UpdateEvent,
|
|
9
13
|
RemoveEvent,
|
|
10
|
-
|
|
14
|
+
UpdateEvent,
|
|
11
15
|
} from "typeorm";
|
|
12
|
-
import { ScheduledJob } from "src/entities/scheduled-job.entity";
|
|
13
|
-
import { ModuleMetadataHelperService } from "src/helpers/module-metadata-helper.service";
|
|
14
|
-
import { CreateScheduledJobDto, ScheduledJobRepository } from "src/repository/scheduled-job.repository";
|
|
15
|
-
import { ModuleMetadata } from "src/entities/module-metadata.entity";
|
|
16
|
-
import { where } from "locale-codes";
|
|
17
16
|
|
|
18
17
|
@Injectable()
|
|
19
18
|
export class ScheduledJobSubscriber
|
|
@@ -161,11 +160,12 @@ export class ScheduledJobSubscriber
|
|
|
161
160
|
);
|
|
162
161
|
// Insert or update job in metadata
|
|
163
162
|
const jobDto = await this.scheduledJobRepo.toDto(populatedScheduleJob as ScheduledJob);
|
|
163
|
+
const {moduleId, ...dtoToWrite} = jobDto
|
|
164
164
|
if (existingIndex !== -1) {
|
|
165
|
-
metaData.scheduledJobs[existingIndex] =
|
|
165
|
+
metaData.scheduledJobs[existingIndex] = dtoToWrite;
|
|
166
166
|
this.logger.log(`Updated scheduled job ${jobName} in metadata`);
|
|
167
167
|
} else {
|
|
168
|
-
metaData.scheduledJobs.push(
|
|
168
|
+
metaData.scheduledJobs.push(dtoToWrite);
|
|
169
169
|
this.logger.log(`Added scheduled job ${jobName} to metadata`);
|
|
170
170
|
}
|
|
171
171
|
|