mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-28 03:43:28 +10:00
Merge pull request #451 from sharetribe/tx-filter-sales-by-last-transition
Fetch notifications based on last transition
This commit is contained in:
commit
de629316d4
1 changed files with 2 additions and 8 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { updatedEntities, denormalisedEntities } from '../util/data';
|
||||
import { TX_TRANSITION_PREAUTHORIZE } from '../util/propTypes';
|
||||
|
||||
// ================ Action types ================ //
|
||||
|
||||
|
|
@ -298,14 +299,7 @@ export const fetchCurrentUserNotifications = () =>
|
|||
|
||||
const apiQueryParams = {
|
||||
only: 'sale',
|
||||
|
||||
// TODO: Currently the API supports only filtering by tx
|
||||
// state. However, the state will be removed and support for
|
||||
// filtering by last transitions is added. The code below should
|
||||
// be changed at that point.
|
||||
states: ['state/preauthorized'],
|
||||
// last_transitions: [TX_TRANSITION_PREAUTHORIZE],
|
||||
|
||||
last_transitions: [TX_TRANSITION_PREAUTHORIZE],
|
||||
page: 1,
|
||||
per_page: NOTIFICATION_PAGE_SIZE,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue