fix workstation show

This commit is contained in:
mahdahar 2025-11-07 08:39:47 +07:00
parent 687b853599
commit 82f8097337

View File

@ -64,7 +64,7 @@ class Workstation extends BaseController {
try {
$id = $input['WorkstationID'];
$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) {
return $this->failServerError('Something went wrong: ' . $e->getMessage());
}