diff --git a/app/Services/NaverService.php b/app/Services/NaverService.php index f6657d4..725282b 100644 --- a/app/Services/NaverService.php +++ b/app/Services/NaverService.php @@ -27,17 +27,17 @@ class NaverService public function __construct() { - try { $this->db = \Config\Database::connect(); - - $this->VrfcReqModel = new VrfcReqModel(); - $this->articleModel = new V2ArticleInfoModel(); - $this->V2stdailyModel = new V2stdailyModel(); - $this->rawStagingModel = new NaverRawStagingModel(); - $this->receiptModel = new ReceiptModel(); - $this->resultModel = new ResultModel(); + try { + $this->naverClient = new NaverApiClient(); + $this->VrfcReqModel = new VrfcReqModel(); + $this->articleModel = new V2ArticleInfoModel(); + $this->V2stdailyModel = new V2stdailyModel(); + $this->rawStagingModel = new NaverRawStagingModel(); + $this->receiptModel = new ReceiptModel(); + $this->resultModel = new ResultModel(); - $this->statusService = new StatusService(); + $this->statusService = new StatusService(); helper('log'); } catch (\Throwable $e) {