Skip to content

Commit

Permalink
feat: /access now returns rootFolderId (uuid)
Browse files Browse the repository at this point in the history
  • Loading branch information
apsantiso committed Jun 10, 2024
1 parent e080a37 commit 447601e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/routes/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { ReferralsNotAvailableError } from '../services/errors/referrals';

interface Services {
User: any;
Folder: any;
Analytics: any;
ReCaptcha: any;
Crypt: any;
Expand Down Expand Up @@ -169,12 +170,14 @@ export class AuthController {

const keys = await this.service.KeyServer.getKeys(userData);
const hasTeams = !!(await this.service.Team.getTeamByMember(req.body.email));
const rootFolder = await this.service.Folder.getById(userData.root_folder_id);

const user = {
email: req.body.email,
userId: userData.userId,
mnemonic: userData.mnemonic,
root_folder_id: userData.root_folder_id,
rootFolderId: rootFolder?.uuid,
name: userData.name,
lastname: userData.lastname,
uuid: userData.uuid,
Expand Down

0 comments on commit 447601e

Please sign in to comment.