location updates saved to db and base endpoints for other modules started
This commit is contained in:
@@ -13,11 +13,11 @@ export const getVenueById = async (id) => {
|
||||
// Read (Get by Query)
|
||||
export const getVenueByQuery = async (query) => {
|
||||
return await Model.findOne(query);
|
||||
}
|
||||
};
|
||||
|
||||
// Read (Get all)
|
||||
export const getAllVenues = async () => {
|
||||
return await Model.find();
|
||||
export const getAllVenues = async (query = {}) => {
|
||||
return await Model.find(query);
|
||||
};
|
||||
|
||||
// Update
|
||||
|
||||
Reference in New Issue
Block a user