Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ node_modules
.DS_Store
.cursorignore
tsconfig.tsbuildinfo
docker-compose.test.yml
12 changes: 9 additions & 3 deletions app/_utils/cron/line-manipulation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ export const pauseJobInLines = (lines: string[], targetJobIndex: number): string
currentJobIndex++;
} else {
newCronEntries.push(line);
i++;
newCronEntries.push(lines[i + 1]);
i += 2;
currentJobIndex++;
}
} else {
newCronEntries.push(line);
Expand Down Expand Up @@ -295,8 +297,10 @@ export const deleteJobInLines = (lines: string[], targetJobIndex: number): strin
) {
if (currentJobIndex !== targetJobIndex) {
newCronEntries.push(line);
newCronEntries.push(lines[i + 1]);
}
i++;
i += 2;
currentJobIndex++;
} else {
newCronEntries.push(line);
i++;
Expand Down Expand Up @@ -385,8 +389,10 @@ export const updateJobInLines = (
i += 2;
} else {
newCronEntries.push(line);
i++;
newCronEntries.push(lines[i + 1]);
i += 2;
}
currentJobIndex++;
} else {
newCronEntries.push(line);
i++;
Expand Down
Loading