@friggframework/admin-scripts 2.0.0--canary.517.216685f.0 → 2.0.0--canary.517.2d5f115.0

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/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@friggframework/admin-scripts",
3
3
  "prettier": "@friggframework/prettier-config",
4
- "version": "2.0.0--canary.517.216685f.0",
4
+ "version": "2.0.0--canary.517.2d5f115.0",
5
5
  "description": "Admin Script Runner for Frigg - Execute maintenance and operational scripts in hosted environments",
6
6
  "dependencies": {
7
7
  "@aws-sdk/client-scheduler": "^3.588.0",
8
- "@friggframework/core": "2.0.0--canary.517.216685f.0",
8
+ "@friggframework/core": "2.0.0--canary.517.2d5f115.0",
9
9
  "@hapi/boom": "^10.0.1",
10
10
  "express": "^4.18.2",
11
11
  "serverless-http": "^3.2.0"
12
12
  },
13
13
  "devDependencies": {
14
- "@friggframework/eslint-config": "2.0.0--canary.517.216685f.0",
15
- "@friggframework/prettier-config": "2.0.0--canary.517.216685f.0",
16
- "@friggframework/test": "2.0.0--canary.517.216685f.0",
14
+ "@friggframework/eslint-config": "2.0.0--canary.517.2d5f115.0",
15
+ "@friggframework/prettier-config": "2.0.0--canary.517.2d5f115.0",
16
+ "@friggframework/test": "2.0.0--canary.517.2d5f115.0",
17
17
  "eslint": "^8.22.0",
18
18
  "jest": "^29.7.0",
19
19
  "prettier": "^2.7.1",
@@ -44,5 +44,5 @@
44
44
  "maintenance",
45
45
  "operations"
46
46
  ],
47
- "gitHead": "216685fea6d163571fffe8203df76a9a2f05e933"
47
+ "gitHead": "2d5f1156389ca3b013b151bd6a8468d9d2f8e0cf"
48
48
  }
@@ -28,7 +28,6 @@ class UpsertScheduleUseCase {
28
28
  this._validateScriptExists(scriptName);
29
29
  this._validateInput(enabled, cronExpression);
30
30
 
31
- // Save to database
32
31
  const schedule = await this.commands.upsertSchedule({
33
32
  scriptName,
34
33
  enabled,
@@ -36,7 +35,6 @@ class UpsertScheduleUseCase {
36
35
  timezone: timezone || 'UTC',
37
36
  });
38
37
 
39
- // Sync with external scheduler (AWS EventBridge, etc.)
40
38
  const schedulerResult = await this._syncExternalScheduler(
41
39
  scriptName,
42
40
  enabled,
@@ -87,8 +85,6 @@ class UpsertScheduleUseCase {
87
85
  }
88
86
 
89
87
  /**
90
- * Sync with external scheduler service
91
- * Abstracts AWS EventBridge or other scheduler providers
92
88
  * @private
93
89
  */
94
90
  async _syncExternalScheduler(
@@ -106,7 +102,6 @@ class UpsertScheduleUseCase {
106
102
 
107
103
  try {
108
104
  if (enabled && cronExpression) {
109
- // Create/update external schedule
110
105
  const schedulerInfo =
111
106
  await this.schedulerAdapter.createSchedule({
112
107
  scriptName,
@@ -123,7 +118,6 @@ class UpsertScheduleUseCase {
123
118
  result.externalScheduleName = schedulerInfo.scheduleName;
124
119
  }
125
120
  } else if (!enabled && existingId) {
126
- // Delete external schedule
127
121
  await this.schedulerAdapter.deleteSchedule(scriptName);
128
122
  await this.commands.updateScheduleExternalInfo(scriptName, {
129
123
  externalScheduleId: null,