Skip to content

Commit

Permalink
chore: code
Browse files Browse the repository at this point in the history
  • Loading branch information
jevantang committed Mar 25, 2024
1 parent cd6119c commit ca451b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Exceptions/ResponseException.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ResponseException extends \Exception
public function render()
{
return response()->json([
'code' => 20000,
'code' => 10000,
'message' => $this->getMessage(),
'data' => null,
]);
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/ResponseTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ trait ResponseTrait
{
public function failure(?string $message = null)
{
$code = 20000;
$code = 10000;
$message = $message ?: 'DTO Unknown Error';

if (request()->wantsJson()) {
Expand Down

0 comments on commit ca451b3

Please sign in to comment.