@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.
Files changed (2) hide show
  1. package/lib/users.js +1 -1
  2. 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, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackfactor/client-api",
3
- "version": "1.0.89",
3
+ "version": "1.0.90",
4
4
  "description": "Node.js library for the StackFactor API",
5
5
  "main": "index.js",
6
6
  "exports": {