fix: normalize POST success response status
This commit is contained in:
parent
5aebc255e8
commit
0ec13e404a
@ -195,11 +195,11 @@ class TestsController extends BaseController
|
||||
return $this->failServerError('Transaction failed');
|
||||
}
|
||||
|
||||
return $this->respondCreated([
|
||||
'status' => 'created',
|
||||
'message' => 'Test created successfully',
|
||||
'data' => ['TestSiteId' => $id],
|
||||
]);
|
||||
return $this->respondCreated([
|
||||
'status' => 'success',
|
||||
'message' => 'Test created successfully',
|
||||
'data' => ['TestSiteId' => $id],
|
||||
]);
|
||||
} catch (\Exception $e) {
|
||||
$db->transRollback();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user