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.
|
* 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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user