Skip to content

Commit

Permalink
fix: Temp file was not deleted after processing (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisToxz authored Jul 11, 2023
1 parent ca2b92e commit 30ffe15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Jobs/CreateSlip.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function handle(): void
}

// TODO: Getting video details
SlipProcessUpdate::dispatch($this->slip->token, 'Getting video details', 100);
SlipProcessUpdate::dispatch($this->slip->token, 'Getting video details', 99);
GetVideoInfo::dispatchSync($this->slip);
$this->after();
}
Expand All @@ -143,6 +143,8 @@ public function before()

public function after()
{
SlipProcessUpdate::dispatch($this->slip->token, 'Deleting temp file', 100);
Storage::disk('local')->delete($this->tmpPath);
$this->slip->setStatus(SLipStatus::FINISHED());
SlipProcessFinished::dispatch($this->slip);
}
Expand Down

0 comments on commit 30ffe15

Please sign in to comment.