Skip to content

Commit

Permalink
dont load the model until we need it
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin McFadden committed Jun 17, 2024
1 parent a846547 commit 4b7f794
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/libraries/TranscoderCommandsAWS.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ public function __construct($pheanstalk = null, $videoTTR = null, $objectId = nu
$this->videoTTR = $videoTTR;
}
$CI =& get_instance();
$CI->load->model("transcoder_model");

if($objectId) {


$CI->load->model("transcoder_model");
$this->transcoderModel = new Transcoder_Model();
$this->transcoderModel->setFileHandler($objectId);
}
Expand Down

0 comments on commit 4b7f794

Please sign in to comment.