5 Commits

Author SHA1 Message Date
fccview
7fc8cb9edb update readme 2025-08-31 19:20:10 +01:00
fccview
4dfdf8fc53 Merge pull request #27 from fccview/BUG-4
Fix editing jobs with description too similar
2025-08-31 19:16:55 +01:00
fccview
8cfc000893 Fix editing jobs with description too similar 2025-08-31 19:16:19 +01:00
fccview
1dde8f839e fix readme 2025-08-27 20:23:24 +01:00
fccview
2b7d591a95 Merge pull request #20 from fccview/feature/multi-user-support
Feature/multi user support
2025-08-27 20:21:59 +01:00
3 changed files with 14 additions and 4 deletions

1
.gitignore vendored
View File

@@ -12,3 +12,4 @@ node_modules
.DS_Store
.cursorignore
tsconfig.tsbuildinfo
docker-compose.test.yml

View File

@@ -49,7 +49,7 @@ If you find my projects helpful and want to fuel my late-night coding sessions w
```bash
services:
cronjob-manager:
image: ghcr.io/fccview/cronmaster:2.3.0
image: ghcr.io/fccview/cronmaster:1.3.0
container_name: cronmaster
user: "root"
ports:
@@ -241,6 +241,9 @@ I would like to thank the following members for raising issues and help test/deb
<td align="center" valign="top" width="20%">
<a href="https://github.com/DVDAndroid"><img width="100" height="100" src="https://avatars.githubusercontent.com/u/6277172?u=78aa9b049a0c1a7ae5408d22219a8a91cfe45095&v=4&size=100"><br />DVDAndroid</a>
</td>
<td align="center" valign="top" width="20%">
<a href="https://github.com/ActxLeToucan"><img width="100" height="100" src="https://avatars.githubusercontent.com/u/56509120?u=b0a684dfa1fcf8f3f41c2ead37f6441716d8bd62&v=4&size=100"><br />ActxLeToucan</a>
</td>
</tr>
</tbody>
</table>

View File

@@ -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);
@@ -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++;
@@ -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++;