Skip to content

Commit

Permalink
OV-5: * change notation
Browse files Browse the repository at this point in the history
Co-authored-by: Sofiia Trokhymchuk <[email protected]>
  • Loading branch information
stefano-lacorazza and sofiia-trokhymchuk authored Aug 29, 2024
1 parent a8687aa commit c4bcd77
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/src/bundles/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ class AuthService {
});
}

const id = user.toObject().id;
const userObject = user.toObject();
const id = { userObject };
const token = await tokenService.createToken(id);
return { ...user.toObject(), token };
return { ...userObject, token };
}

public async signUp(
Expand Down

0 comments on commit c4bcd77

Please sign in to comment.