team-toon-tack 1.0.9 → 1.0.10
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 +1 -1
- package/scripts/sync.ts +3 -1
package/package.json
CHANGED
package/scripts/sync.ts
CHANGED
|
@@ -60,9 +60,11 @@ Examples:
|
|
|
60
60
|
const oldCycleName = config.current_cycle?.name ?? existingData?.cycleName ?? 'Unknown';
|
|
61
61
|
console.log(`Cycle changed: ${oldCycleName} → ${cycleName}`);
|
|
62
62
|
|
|
63
|
-
// Move old cycle to history
|
|
63
|
+
// Move old cycle to history (avoid duplicates)
|
|
64
64
|
if (config.current_cycle) {
|
|
65
65
|
config.cycle_history = config.cycle_history ?? [];
|
|
66
|
+
// Remove if already exists in history
|
|
67
|
+
config.cycle_history = config.cycle_history.filter(c => c.id !== config.current_cycle!.id);
|
|
66
68
|
config.cycle_history.unshift(config.current_cycle);
|
|
67
69
|
// Keep only last 10 cycles
|
|
68
70
|
if (config.cycle_history.length > 10) {
|