From 811c6ef4a4f2ee32155bfb28fd865f815c4223fd Mon Sep 17 00:00:00 2001 From: I746264 Date: Tue, 20 Aug 2024 11:18:59 +0800 Subject: [PATCH] Used prettier to fix formatting issues, added commas after some statements --- .../config/default-occ-user-profile-endpoint.config.ts | 2 +- .../profile/occ/adapters/occ-user-profile.adapter.spec.ts | 4 ++-- .../user/profile/occ/adapters/occ-user-profile.adapter.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/feature-libs/user/profile/occ/adapters/config/default-occ-user-profile-endpoint.config.ts b/feature-libs/user/profile/occ/adapters/config/default-occ-user-profile-endpoint.config.ts index f6334c0531f..f2904946b49 100644 --- a/feature-libs/user/profile/occ/adapters/config/default-occ-user-profile-endpoint.config.ts +++ b/feature-libs/user/profile/occ/adapters/config/default-occ-user-profile-endpoint.config.ts @@ -12,7 +12,7 @@ export const defaultOccUserProfileConfig: OccConfig = { endpoints: { userRegister: 'users', userForgotPassword: 'forgottenpasswordtokens', - userRestoreToken:'passwordRestoreToken', + userRestoreToken: 'passwordRestoreToken', userResetPassword: 'resetpassword', userUpdateLoginId: 'users/${userId}/login', userUpdatePassword: 'users/${userId}/password', diff --git a/feature-libs/user/profile/occ/adapters/occ-user-profile.adapter.spec.ts b/feature-libs/user/profile/occ/adapters/occ-user-profile.adapter.spec.ts index 619f3f486d1..21ebafb1ad3 100644 --- a/feature-libs/user/profile/occ/adapters/occ-user-profile.adapter.spec.ts +++ b/feature-libs/user/profile/occ/adapters/occ-user-profile.adapter.spec.ts @@ -315,7 +315,7 @@ describe('OccUserProfileAdapter', () => { expect(mockReq.cancelled).toBeFalsy(); expect(mockReq.request.body).toEqual({ newLoginId: newUserId, - password: currentPassword + password: currentPassword, }); mockReq.flush(''); }); @@ -343,7 +343,7 @@ describe('OccUserProfileAdapter', () => { expect(mockReq.cancelled).toBeFalsy(); expect(mockReq.request.body).toEqual({ oldPassword: oldPassword, - newPassword: newPassword + newPassword: newPassword, }); mockReq.flush(''); }); diff --git a/feature-libs/user/profile/occ/adapters/occ-user-profile.adapter.ts b/feature-libs/user/profile/occ/adapters/occ-user-profile.adapter.ts index 8bb66f2bd9e..1dd95092eac 100644 --- a/feature-libs/user/profile/occ/adapters/occ-user-profile.adapter.ts +++ b/feature-libs/user/profile/occ/adapters/occ-user-profile.adapter.ts @@ -131,7 +131,7 @@ export class OccUserProfileAdapter implements UserProfileAdapter { }); const body = { newLoginId: newUserId, - password: currentPassword + password: currentPassword, }; const headers = new HttpHeaders(CONTENT_TYPE_JSON_HEADER); return this.http.post(url, body, { headers }).pipe( @@ -151,7 +151,7 @@ export class OccUserProfileAdapter implements UserProfileAdapter { }); const body = { oldPassword: oldPassword, - newPassword: newPassword + newPassword: newPassword, }; const headers = new HttpHeaders(CONTENT_TYPE_JSON_HEADER); return this.http.post(url, body, { headers }).pipe(