summaryrefslogtreecommitdiff
path: root/app/Api/CategoryApi.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Api/CategoryApi.php')
-rw-r--r--app/Api/CategoryApi.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/Api/CategoryApi.php b/app/Api/CategoryApi.php
index 7c5d3bfb..c56cfb35 100644
--- a/app/Api/CategoryApi.php
+++ b/app/Api/CategoryApi.php
@@ -14,17 +14,17 @@ class CategoryApi extends Base
{
public function getCategory($category_id)
{
- return $this->category->getById($category_id);
+ return $this->categoryModel->getById($category_id);
}
public function getAllCategories($project_id)
{
- return $this->category->getAll($project_id);
+ return $this->categoryModel->getAll($project_id);
}
public function removeCategory($category_id)
{
- return $this->category->remove($category_id);
+ return $this->categoryModel->remove($category_id);
}
public function createCategory($project_id, $name)
@@ -35,7 +35,7 @@ class CategoryApi extends Base
);
list($valid, ) = $this->categoryValidator->validateCreation($values);
- return $valid ? $this->category->create($values) : false;
+ return $valid ? $this->categoryModel->create($values) : false;
}
public function updateCategory($id, $name)
@@ -46,6 +46,6 @@ class CategoryApi extends Base
);
list($valid, ) = $this->categoryValidator->validateModification($values);
- return $valid && $this->category->update($values);
+ return $valid && $this->categoryModel->update($values);
}
}