aktueller stand
This commit is contained in:
@@ -442,6 +442,17 @@ async function fetchStoreMembers(storeId, cookieHeader, context) {
|
||||
return Array.isArray(response.data) ? response.data : [];
|
||||
}
|
||||
|
||||
async function fetchRegularPickup(storeId, cookieHeader, context) {
|
||||
if (!storeId) {
|
||||
return [];
|
||||
}
|
||||
const response = await client.get(
|
||||
`/api/stores/${storeId}/regularPickup`,
|
||||
buildRequestConfig({ cookieHeader, context })
|
||||
);
|
||||
return Array.isArray(response.data) ? response.data : [];
|
||||
}
|
||||
|
||||
async function bookSlot(storeId, utcDate, profileId, session) {
|
||||
await client.post(
|
||||
`/api/stores/${storeId}/pickups/${utcDate}/${profileId}`,
|
||||
@@ -464,6 +475,7 @@ module.exports = {
|
||||
fetchRegionStores,
|
||||
fetchStoreDetails,
|
||||
fetchStoreMembers,
|
||||
fetchRegularPickup,
|
||||
pickupRuleCheck,
|
||||
bookSlot
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user