Skip to content

Commit b5878e9

Browse files
committed
CMS-1290: Code refactor by copilot
1 parent af513a4 commit b5878e9

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

backend/routes/api/seasons.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,16 +1124,12 @@ router.post(
11241124
});
11251125

11261126
if (winterSeason) {
1127-
console.log("Approving winter season:", winterSeason.id);
11281127
await updateStatus(
11291128
winterSeason.id,
11301129
STATUS.APPROVED,
11311130
null,
11321131
transaction,
11331132
);
1134-
console.log("Winter season approved successfully");
1135-
} else {
1136-
console.log("No winter season found for this park/year");
11371133
}
11381134
}
11391135

backend/tasks/create-winter-seasons/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This script creates winter seasons for parks that have winter fee dates (`hasWin
1515

1616
3. **Creates winter seasons for the specified operating year:**
1717
- Creates new seasons with `seasonType = "winter"`
18-
- Sets `status = "REQUESTED"` and `readyToPublish = false` (requires manual approval)
18+
- Sets `status = "REQUESTED"` and `readyToPublish = true` (requires manual approval)
1919
- Skips creation if a winter season already exists for the park and year
2020

2121
4. **Creates Winter fee DateRanges in winter seasons:**

backend/utils/seasonHelpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ export async function createDateableId(record, transaction) {
5454
Dateable,
5555
transaction,
5656
);
57-
57+
5858
return { key, added };
5959
}

0 commit comments

Comments
 (0)