@availity/api-core
Advanced tools
Comparing version 6.0.2 to 6.0.3
@@ -6,2 +6,13 @@ # Change Log | ||
## [6.0.3](https://github.com/Availity/sdk-js/compare/@availity/api-core@6.0.2...@availity/api-core@6.0.3) (2019-12-03) | ||
### Performance Improvements | ||
* **api-core:** use userId if it exists in get,set application settings ([6cdd059](https://github.com/Availity/sdk-js/commit/6cdd059)) | ||
## [6.0.2](https://github.com/Availity/sdk-js/compare/@availity/api-core@6.0.1...@availity/api-core@6.0.2) (2019-12-02) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "@availity/api-core", | ||
"version": "6.0.2", | ||
"version": "6.0.3", | ||
"description": "Base API definitions for the Availity REST API", | ||
@@ -24,3 +24,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "6fd302a43d133520d34e32f0e096b08431416eed" | ||
"gitHead": "c21c54fe3e92327f06069597a26ecc691b266b54" | ||
} |
@@ -28,2 +28,8 @@ import AvApi from '../api'; | ||
} | ||
if (config && config.params && config.params.userId) { | ||
const queryConfig = this.addParams({ applicationId }, config); | ||
return this.query(queryConfig); | ||
} | ||
return this.avUsers.me().then(user => { | ||
@@ -56,2 +62,7 @@ const queryConfig = this.addParams( | ||
if (data && data.scope && data.scope.userId) { | ||
data.scope.applicationId = applicationId; | ||
return this.update(data, config); | ||
} | ||
return this.avUsers.me().then(user => { | ||
@@ -58,0 +69,0 @@ data = data || {}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51868
941