Operational Endpoints for Admin, Products, Assignments, Location, Vendor, Venue completed. Geofence Testing PEnding

This commit is contained in:
Shibi Chakkaravarthy
2026-06-14 08:04:31 +05:30
parent 5326235183
commit 36e1bf664f
26 changed files with 1392 additions and 25 deletions
+7 -2
View File
@@ -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 () => {