Skip to content

Commit

Permalink
fix(com-pwa/context-provider): path
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm committed May 2, 2023
1 parent 44917d8 commit bfa1086
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export const orderStorageContextConsumer = serverContextConsumer<AlwatrDocumentS
'order_storage_context',
{
...config.fetchContextOptions,
url: config.api + '/order-list/',
},
);

Expand All @@ -19,9 +18,7 @@ orderStorageContextConsumer.fsm.defineSignals([
signalId: userProfileContextConsumer.id,
callback: (user: ComUser): void => {
orderStorageContextConsumer.request({
queryParameters: {
userId: user.id,
},
url: config.api + '/storage/order-list-' + user.id,
});
},
receivePrevious: 'NextCycle',
Expand Down
10 changes: 2 additions & 8 deletions uniquely/com-pwa/src/manager/context-provider/price-storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ export const productPriceStorageContextConsumer = serverContextConsumer<AlwatrDo
'product_price_storage_context',
{
...config.fetchContextOptions,
url: config.api + '/price-list/',
queryParameters: {
name: config.priceListName.replace('${productStorage}', 'tile'),
},
url: config.api + '/storage/price-list-' + config.priceListName.replace('${productStorage}', 'tile'),
},
);

Expand All @@ -33,10 +30,7 @@ export const productFinalPriceStorageContextConsumer = serverContextConsumer<Alw
'product_final_price_storage_context',
{
...config.fetchContextOptions,
url: config.api + '/price-list/',
queryParameters: {
name: config.finalPriceListName.replace('${productStorage}', 'tile'),
},
url: config.api + '/storage/price-list-' + config.priceListName.replace('${productStorage}', 'tile') + '.json',
},
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ export const productStorageContextConsumer = serverContextConsumer<AlwatrDocumen
'product_storage_context',
{
...config.fetchContextOptions,
url: config.api + '/product-list/',
queryParameters: {
storage: 'tile',
},
url: config.api + '/storage/product-list-tile',
},
);

Expand Down

0 comments on commit bfa1086

Please sign in to comment.