Skip to content

Commit

Permalink
Merge pull request #815 from inplayer-org/plans-methods
Browse files Browse the repository at this point in the history
Search string for `InPlayer.Payment.getSitePlans` appended without `?`
  • Loading branch information
mirovladimitrovski authored Jun 19, 2024
2 parents 49a9da9 + 524f702 commit 4ffd2f2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file.

# [3.13.26] - 19-06-2024

### Fixes

- Search string for `InPlayer.Payment.getSitePlans` appended without `?`

# [3.13.25] - 17-06-2024

### Added
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@inplayer-org/inplayer.js",
"version": "3.13.25",
"version": "3.13.26",
"author": "InPlayer",
"license": "MIT",
"description": "A Javascript SDK for Inplayer's RESTful API",
Expand Down
2 changes: 1 addition & 1 deletion src/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export const API = {
getSitePlans: (siteId: string, plansIds: string[] = []) =>

Check warning on line 113 in src/constants/index.ts

View workflow job for this annotation

GitHub Actions / Build

Missing return type on function
`/v3/sites/${siteId}/plans${
plansIds.length
? `q=id:(${plansIds.map((planId) => `"${planId}"`).join(' OR ')})`
? `?q=id:(${plansIds.map((planId) => `"${planId}"`).join(' OR ')})`
: ''
}`,

Expand Down

0 comments on commit 4ffd2f2

Please sign in to comment.