From c98447407a412268abf2b58a4f4a8f05aae00b38 Mon Sep 17 00:00:00 2001 From: Landon Reed Date: Tue, 26 May 2020 12:22:04 -0400 Subject: [PATCH] fix(user-update): fix user update error introduced in #577 --- __tests__/end-to-end.js | 3 ++- lib/manager/actions/user.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/__tests__/end-to-end.js b/__tests__/end-to-end.js index b00285641..b28967fdb 100644 --- a/__tests__/end-to-end.js +++ b/__tests__/end-to-end.js @@ -915,7 +915,8 @@ describe('end-to-end', () => { await waitForAndClick(`[data-test-id="edit-user-${testUserSlug}"]`) // $FlowFixMe cryptic error that is hard to resolve :( const adminCheckbox = await page.$(`[data-test-id="app-admin-checkbox-${testUserSlug}"]`) - expect(await (await adminCheckbox.getProperty('checked')).jsonValue()).toBe(true) + const isAdmin = await (await adminCheckbox.getProperty('checked')).jsonValue() + expect(isAdmin).toBe(true) }, defaultTestTimeout, 'should allow admin user to create another user') makeTestPostLogin('should delete a user', async () => { diff --git a/lib/manager/actions/user.js b/lib/manager/actions/user.js index f53efd7f1..30cd4c091 100644 --- a/lib/manager/actions/user.js +++ b/lib/manager/actions/user.js @@ -232,7 +232,7 @@ export function updateUserData (user: any, userData: any) { const url = `/api/manager/secure/user/${user.user_id}` const payload = { user_id: profile.user_id, - app_metadata: metadata.datatools + data: metadata.datatools } let status // Make request to server