Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.45 KB | None | 0 0
  1. export default connect(QueuePage, {
  2.     subscriptions: {
  3.         queue: ({ match }) => ({
  4.             endpoint: `queues/${match.params.id}`
  5.         }),
  6.         visitors: ({ match }) => ({
  7.             endpoint: `visitors`,
  8.             options: {
  9.                 queries: {
  10.                     orderByChild: 'queueId',
  11.                     equalTo: match.params.id
  12.                 },
  13.                 asArray: true
  14.             }
  15.         })
  16.     }
  17. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement