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