Skip to content

Commit

Permalink
fix: fixed calling script
Browse files Browse the repository at this point in the history
  • Loading branch information
lewislarsen committed Jul 2, 2024
1 parent d3df10e commit b0a88b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/Jobs/RunDatabaseBackupTaskJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function __construct(public int $backupTaskId)

public function handle(): void
{
new DatabaseBackupTask($this->backupTaskId);
$backupTask = new DatabaseBackupTask($this->backupTaskId);
$backupTask->handle();
}
}
3 changes: 2 additions & 1 deletion app/Jobs/RunFileBackupTaskJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function __construct(public int $backupTaskId)

public function handle(): void
{
new FileBackupTask($this->backupTaskId);
$backupTask = new FileBackupTask($this->backupTaskId);
$backupTask->handle();
}
}

0 comments on commit b0a88b8

Please sign in to comment.