Merge pull request #286 from lbryio/improvement/api-method

Add method name to the API query string
This commit is contained in:
Sean Yesmunt 2020-03-12 11:26:15 -04:00 committed by GitHub
commit 8245b05574
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

2
dist/bundle.es.js vendored
View file

@ -1052,7 +1052,7 @@ function apiCall(method, params, resolve, reject) {
})
};
return fetch(Lbry.daemonConnectionString, options).then(checkAndParse).then(response => {
return fetch(Lbry.daemonConnectionString + '?m=' + method, options).then(checkAndParse).then(response => {
const error = response.error || response.result && response.result.error;
if (error) {

View file

@ -191,7 +191,7 @@ export function apiCall(method: string, params: ?{}, resolve: Function, reject:
}),
};
return fetch(Lbry.daemonConnectionString, options)
return fetch(Lbry.daemonConnectionString + '?m=' + method, options)
.then(checkAndParse)
.then(response => {
const error = response.error || (response.result && response.result.error);