Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Commit

Permalink
feat(api): add link and bio in base-info get (#2356)
Browse files Browse the repository at this point in the history
  • Loading branch information
revolunet authored Jan 25, 2024
1 parent d48c07c commit 9fe05e1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ OVH_APP_KEY=
OVH_APP_SECRET=
OVH_CONSUMER_KEY=
#SESSION_SECRET=ChangeIdDoNoLeetADefaultValueInProduction
FRONT_APP_URL=http://localhost:3001
MAIL_SERVICE=
MAIL_USER=
MAIL_PASS=
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ services:
ports:
- '1080:80'
- '1025:25'
redis:
redis: # sessions
image: redis:alpine
command: redis-server --requirepass localpwd
hostname: redis
Expand Down
2 changes: 1 addition & 1 deletion src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default {
SPONSOR_API:
process.env.SPONSOR_API || 'https://beta.gouv.fr/api/v2.5/sponsors.json',
usersAPI:
process.env.USERS_API || 'https://beta.gouv.fr/api/v2.3/authors.json',
process.env.USERS_API || 'https://beta.gouv.fr/api/v2.6/authors.json',
incubatorAPI:
process.env.INCUBATOR_API ||
'https://beta.gouv.fr/api/v2.5/incubators.json',
Expand Down
4 changes: 4 additions & 0 deletions src/controllers/usersController/baseInfo/getBaseInfoUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ const getBaseInfo = async (req, res, onSuccess, onError) => {
formData: {
startups: userStartups || [],
role: currentUser.userInfos.role,
link: currentUser.userInfos.link,
domaine: currentUser.userInfos.domaine,
fullname: currentUser.userInfos.fullname,
bio: currentUser.userInfos.bio,
missions: currentUser.userInfos.missions,
end: currentUser.userInfos.end,
start: currentUser.userInfos.start,
Expand Down
2 changes: 2 additions & 0 deletions src/models/member.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ export const DOMAINE_OPTIONS = [
export interface Member {
id: string;
fullname: string;
bio: string;
link: string;
github?: string;
email?: string;
missions: Mission[];
Expand Down

0 comments on commit 9fe05e1

Please sign in to comment.