mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-30 09:36:42 +10:00
Add reviews to OrderPage and SalePage
This commit is contained in:
parent
dccf787f13
commit
1f3e0e9fce
2 changed files with 18 additions and 1 deletions
|
|
@ -117,7 +117,21 @@ export const fetchOrder = id => (dispatch, getState, sdk) => {
|
|||
let txResponse = null;
|
||||
|
||||
return sdk.transactions
|
||||
.show({ id, include: ['customer', 'provider', 'listing', 'booking'] }, { expand: true })
|
||||
.show(
|
||||
{
|
||||
id,
|
||||
include: [
|
||||
'customer',
|
||||
'provider',
|
||||
'listing',
|
||||
'booking',
|
||||
'reviews',
|
||||
'reviews.author',
|
||||
'reviews.subject',
|
||||
],
|
||||
},
|
||||
{ expand: true }
|
||||
)
|
||||
.then(response => {
|
||||
txResponse = response;
|
||||
const listingId = listingRelationship(response).id;
|
||||
|
|
|
|||
|
|
@ -159,6 +159,9 @@ export const fetchSale = id => (dispatch, getState, sdk) => {
|
|||
'provider.profileImage',
|
||||
'listing',
|
||||
'booking',
|
||||
'reviews',
|
||||
'reviews.author',
|
||||
'reviews.subject',
|
||||
],
|
||||
},
|
||||
{ expand: true }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue