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:
parent
8711b3530a
commit
5d53cd28f8
@ -135,6 +135,8 @@ async function getAllModels(): Promise<IDbModel[] | null> {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* ModelService is responsible for managing models.
|
||||
* @namespace
|
||||
@ -145,9 +147,8 @@ const ModelService = {
|
||||
delete: deleteModel,
|
||||
getBySlug: getBySlugModel,
|
||||
getAll: getAllModels,
|
||||
getById: getByIdModel,
|
||||
getByCategory: getByCategoryModel,
|
||||
getByBrand: getModelsByBrand,
|
||||
//getByCategory: getByCategoryModel,
|
||||
//getByBrand: getModelsByBrand,
|
||||
}
|
||||
|
||||
export default ModelService;
|
||||
|
Loading…
x
Reference in New Issue
Block a user