@stackfactor/client-api 1.0.89 → 1.0.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/users.js +1 -1
- package/package.json +1 -1
package/lib/users.js
CHANGED
|
@@ -536,7 +536,7 @@ export const sendPasswordResetNotification = (email) => {
|
|
|
536
536
|
export const setUserInformation = (userId, category, data, token) => {
|
|
537
537
|
return new Promise(function (resolve, reject) {
|
|
538
538
|
const requestData = {
|
|
539
|
-
data: category ? { category: data } : data,
|
|
539
|
+
data: category ? { [category]: data } : data,
|
|
540
540
|
userId: userId,
|
|
541
541
|
};
|
|
542
542
|
let confirmationRequest = client.post("api/v1/users/user", requestData, {
|