Skip to content

Commit

Permalink
🩹 Small null fix in the Task service
Browse files Browse the repository at this point in the history
  • Loading branch information
skerit committed Feb 5, 2024
1 parent ce9c7d7 commit 1078ba2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/class/task_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Service.setMethod(function checksumSystemSchedule(type_path, cron, settings) {
*
* @author Jelle De Loecker <[email protected]>
* @since 1.3.17
* @version 1.3.20
* @version 1.4.0
*/
Service.setMethod(async function initSchedules() {

Expand Down Expand Up @@ -168,7 +168,7 @@ Service.setMethod(async function initSchedules() {
let entry = required_system_schedules.get(checksum);

// If the checksum is not in the required system schedules, remove it
if (!entry) {
if (!entry || !entry.cron) {
await record.remove();
}

Expand Down

0 comments on commit 1078ba2

Please sign in to comment.