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->failServerError('Transaction failed');
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->respondCreated([
|
return $this->respondCreated([
|
||||||
'status' => 'created',
|
'status' => 'success',
|
||||||
'message' => 'Test created successfully',
|
'message' => 'Test created successfully',
|
||||||
'data' => ['TestSiteId' => $id],
|
'data' => ['TestSiteId' => $id],
|
||||||
]);
|
]);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$db->transRollback();
|
$db->transRollback();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user