Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return Subscriptions by member address #46

Open
reyraa opened this issue Jun 25, 2023 · 0 comments
Open

Return Subscriptions by member address #46

reyraa opened this issue Jun 25, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@reyraa
Copy link
Member

reyraa commented Jun 25, 2023

Description

To show the active subscription of the user, and also to determine of the user is allowed to stream audios, we should add memberAddress to the params list of subscriptions endpoint. The Web Player can not perform correctly without this feature.

Acceptance Criteria

  • The subscriptions endpoint should accept the following properties
    • offset: { type: 'number', min: 0, required: false, default: 0 }
    • limit: { type: 'number', min: 1, max 20, required: false, default: 10 }
    • creatorAddress: { type: 'string', required: false }
    • memberAddress: { type: 'string', required: false }

More info

In streamer/services/blockchain-indexer/shared/dataService/business/subscriptions.js we should

  • check the params
  • If params.memberAddress
    • Get member with memberAddress and no removedBy
    • fetch subscription
  • Else, fetch subscriptions using params
@reyraa reyraa added the enhancement New feature or request label Jun 25, 2023
@reyraa reyraa moved this to 🔖 Ready in Streamer Version 0.3.0 Jun 25, 2023
@haghighatcs haghighatcs moved this from 🔖 Ready to 🏗 In progress in Streamer Version 0.3.0 Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant