diff --git a/app/Helpers/ApiResponse.php b/app/Helpers/ApiResponse.php index 2f94c42..cd6b22a 100644 --- a/app/Helpers/ApiResponse.php +++ b/app/Helpers/ApiResponse.php @@ -79,7 +79,7 @@ public static function validate( public static function response($type = '', $query = '', $key = ''): array { - if (app()->environment('local')) $debug = true; + $debug = (app()->environment('local')) ? true : false; if ($debug) DB::enableQueryLog(); // 쿼리 추적 $result = match ($type) { diff --git a/app/Services/MemberService.php b/app/Services/MemberService.php index 357c43c..25e610d 100644 --- a/app/Services/MemberService.php +++ b/app/Services/MemberService.php @@ -47,7 +47,7 @@ public static function getMember(int $userNo) */ public static function getMyInfo() { - if (app()->environment('local')) $debug = true; + $debug = (app()->environment('local')) ? true : false; if ($debug) DB::enableQueryLog(); // 쿼리 추적 $apiUser = app('api_user');