location controller updated with heading and created new models and controllers for remaining modules
This commit is contained in:
@@ -13,7 +13,12 @@ export const getPartnerById = async (id) => {
|
||||
// Read (Get by Query)
|
||||
export const getPartnerByQuery = async (query) => {
|
||||
return await Model.findOne(query);
|
||||
}
|
||||
};
|
||||
|
||||
// Read (Get all)
|
||||
export const getPartnersByQuery = async (query) => {
|
||||
return await Model.find(query);
|
||||
};
|
||||
|
||||
// Read (Get all)
|
||||
export const getAllPartners = async () => {
|
||||
|
||||
Reference in New Issue
Block a user