converted transfer check from category to type
This commit is contained in:
@@ -4,7 +4,6 @@ namespace App\Jobs\Banking;
|
||||
|
||||
use App\Abstracts\Job;
|
||||
use App\Interfaces\Job\ShouldDelete;
|
||||
use App\Models\Setting\Category;
|
||||
|
||||
class DeleteTransaction extends Job implements ShouldDelete
|
||||
{
|
||||
@@ -31,7 +30,7 @@ class DeleteTransaction extends Job implements ShouldDelete
|
||||
throw new \Exception($message);
|
||||
}
|
||||
|
||||
if ($this->model->category->id == Category::transfer()) {
|
||||
if ($this->model->isTransferTransaction()) {
|
||||
throw new \Exception('Unauthorized');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user