fix workstation show
This commit is contained in:
parent
687b853599
commit
82f8097337
@ -64,7 +64,7 @@ class Workstation extends BaseController {
|
|||||||
try {
|
try {
|
||||||
$id = $input['WorkstationID'];
|
$id = $input['WorkstationID'];
|
||||||
$this->model->update($id, $input);
|
$this->model->update($id, $input);
|
||||||
return $this->respondCreated([ 'status' => 'success', 'message' => 'data updated successfully', 'data' => $this->db->getLastQuery()->getQuery() ], 201);
|
return $this->respondCreated([ 'status' => 'success', 'message' => 'data updated successfully', 'data' => $id ], 201);
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
return $this->failServerError('Something went wrong: ' . $e->getMessage());
|
return $this->failServerError('Something went wrong: ' . $e->getMessage());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user