Operational Endpoints for Admin, Products, Assignments, Location, Vendor, Venue completed. Geofence Testing PEnding
This commit is contained in:
Vendored
+7
-2
@@ -10,10 +10,15 @@ export const getVendorById = async (id) => {
|
||||
return await Model.findById(id);
|
||||
};
|
||||
|
||||
// Read (Get by Query)
|
||||
// Read (Get One by Query)
|
||||
export const getVendorByQuery = async (query) => {
|
||||
return await Model.findOne(query);
|
||||
}
|
||||
};
|
||||
|
||||
// Read (Get All by Query)
|
||||
export const getVendorsByQuery = async (query) => {
|
||||
return await Model.find(query);
|
||||
};
|
||||
|
||||
// Read (Get all)
|
||||
export const getAllVendors = async () => {
|
||||
|
||||
Reference in New Issue
Block a user