Skip to content

Commit

Permalink
make restore with job
Browse files Browse the repository at this point in the history
  • Loading branch information
temaotl committed Jul 11, 2024
1 parent 6d8b4b3 commit 87250fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/EntityController.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ function () use ($entity) {
if ($entity->trashed()) {
$entity->restore();

//TODO restore chain
/* Bus::chain([
new GitAddEntity($entity, Auth::user()),
new GitAddToHfd($entity, Auth::user()),
Expand Down
1 change: 1 addition & 0 deletions app/Models/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public function scopeSearch($query, ?string $search = null)
'created' => CreateEntity::class,
'updated' => UpdateEntity::class,
'deleted' => DeleteEntity::class,
'restored' => CreateEntity::class,

];
}

0 comments on commit 87250fe

Please sign in to comment.