Skip to content

Commit

Permalink
fix(hooks): remove wrong get User
Browse files Browse the repository at this point in the history
  • Loading branch information
meriamBenSassi committed Dec 6, 2023
1 parent 2e4e087 commit 622c332
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/hooks/services/hooks.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,6 @@ describe('HookService', () => {
algoanCustomerService.getDefaultPassword(customerMock.id),
Env.sandbox,
);
expect(getUserSpy).toHaveBeenCalledWith(`user-token-${process.pid}`, `id-${process.pid}`, Env.sandbox);

// DO NOT get a linxo connect client token
expect(geClientTokenSpy).not.toHaveBeenCalled();
Expand Down Expand Up @@ -388,7 +387,6 @@ describe('HookService', () => {
getUserTokenSpy = jest
.spyOn(linxoConnectAuthService, 'getUserToken')
.mockResolvedValue(`user-token-${process.pid}`);
getUserSpy = jest.spyOn(linxoConnectUserService, 'getUser').mockResolvedValue(linxoConnectUserMock);
deleteUserTokenSpy = jest.spyOn(linxoConnectUserService, 'deleteUser').mockResolvedValue();
getConnectionByIdSpy = jest
.spyOn(linxoConnectConnectionService, 'getConnectionWithFinalStatus')
Expand Down
1 change: 0 additions & 1 deletion src/hooks/services/hooks.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ export class HooksService {
this.algoanCustomerService.getDefaultPassword(customer.id),
env,
);
await this.linxoConnectUserService.getUser(userAccessToken, linxoConnectUserId, env);
} catch (e) {
// the user doesn't exist anymore
userAccessToken = undefined;
Expand Down

0 comments on commit 622c332

Please sign in to comment.