Skip to content

Commit

Permalink
[PAY-480][PAY-482][PAY-488][PAY-503][PAY-520][PAY-588] Activate premi…
Browse files Browse the repository at this point in the history
…um content middleware (#3841)

* Active premium content middleware

* Refactor and update tests

* Address PR comments

* Update response error type

* Revert libs version

* Simplify file query for premium content cid

* Use join to only make one db query to get premium content info

* Fix join query

* Address more PR comments

* Add async await in after hook

* Lint + add awaits

* Fix test

* Update the random track metadata in service commands

* Remove 'as'

* Address PR comments

* Fix tests

Co-authored-by: Saliou Diallo <saliou@audius.co>
Co-authored-by: Theo Ilie <theoilie.ti@gmail.com>
  • Loading branch information
3 people authored Sep 27, 2022
1 parent d075c43 commit e85874b
Show file tree
Hide file tree
Showing 17 changed files with 941 additions and 447 deletions.
2 changes: 1 addition & 1 deletion creator-node/src/apiSigning.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const recoverWallet = (data, signature) => {

/**
* Returns boolean indicating if provided timestamp is older than maxTTL
* @param {string} signatureTimestamp unix timestamp string when signature was generated
* @param {number} signatureTimestamp unix timestamp string when signature was generated
*/
const signatureHasExpired = (
signatureTimestamp,
Expand Down
Loading

0 comments on commit e85874b

Please sign in to comment.