refactor(services): update methods in ModelService

Removed `getByIdModel`, `getByCategoryModel`, and `getModelsByBrand` methods. These changes are to refine the methods available in ModelService for better usage and understanding.

Issue: #27
Signed-off-by: Mathis <yidhra@tuta.io>
This commit is contained in:
Mathis H (Avnyr) 2024-04-26 12:13:28 +02:00
parent 8711b3530a
commit 5d53cd28f8
Signed by: Mathis
GPG Key ID: DD9E0666A747D126

View File

@ -135,6 +135,8 @@ async function getAllModels(): Promise<IDbModel[] | null> {
} }
} }
/** /**
* ModelService is responsible for managing models. * ModelService is responsible for managing models.
* @namespace * @namespace
@ -145,9 +147,8 @@ const ModelService = {
delete: deleteModel, delete: deleteModel,
getBySlug: getBySlugModel, getBySlug: getBySlugModel,
getAll: getAllModels, getAll: getAllModels,
getById: getByIdModel, //getByCategory: getByCategoryModel,
getByCategory: getByCategoryModel, //getByBrand: getModelsByBrand,
getByBrand: getModelsByBrand,
} }
export default ModelService; export default ModelService;