Skip to content

Commit 23c4d82

Browse files
committed
Cleanup, removing unnecessary log types on restores
1 parent 27ac7f7 commit 23c4d82

File tree

5 files changed

+0
-5
lines changed

5 files changed

+0
-5
lines changed

app/Http/Controllers/Api/ManufacturersController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ public function restore($id) : JsonResponse
217217
return response()->json(Helper::formatStandardApiResponse('error', trans('general.not_deleted', ['item_type' => trans('general.manufacturer')])), 200);
218218
}
219219

220-
$manufacturer->setLogMessage('restore');
221220
if ($manufacturer->restore()) {
222221

223222
return response()->json(Helper::formatStandardApiResponse('success', trans('admin/manufacturers/message.restore.success')), 200);

app/Http/Controllers/Api/UsersController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,6 @@ public function restore($userId) : JsonResponse
746746
return response()->json(Helper::formatStandardApiResponse('error', trans('general.not_deleted', ['item_type' => trans('general.user')])), 200);
747747
}
748748

749-
$user->setLogMessage(ActionType::Restore);
750749
if ($user->restore()) {
751750

752751
return response()->json(Helper::formatStandardApiResponse('success', null, trans('admin/users/message.success.restored')), 200);

app/Http/Controllers/AssetModelsController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@ public function getRestore($id) : RedirectResponse
225225
return redirect()->back()->with('error', trans('general.not_deleted', ['item_type' => trans('general.asset_model')]));
226226
}
227227

228-
$model->setLogMessage(ActionType::Restore);
229228
if ($model->restore()) {
230229

231230
// Redirect them to the deleted page if there are more, otherwise the section index

app/Http/Controllers/LocationsController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,6 @@ public function postRestore($id) : RedirectResponse
266266
return redirect()->back()->with('error', trans('general.not_deleted', ['item_type' => trans('general.location')]));
267267
}
268268

269-
$location->setLogMessage(ActionType::Restore);
270269
if ($location->restore()) {
271270

272271
return redirect()->route('locations.index')->with('success', trans('admin/locations/message.restore.success'));

app/Http/Controllers/ManufacturersController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ public function restore($id) : RedirectResponse
195195
return redirect()->back()->with('error', trans('general.not_deleted', ['item_type' => trans('general.manufacturer')]));
196196
}
197197

198-
$manufacturer->setLogMessage(ActionType::Restore);
199198
if ($manufacturer->restore()) {
200199

201200
// Redirect them to the deleted page if there are more, otherwise the section index

0 commit comments

Comments
 (0)