Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
Easy Quest - Smart Recruitment Tool with AI - Backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
22_23 - J 36
Easy Quest - Smart Recruitment Tool with AI - Backend
Commits
f0cb13f8
Commit
f0cb13f8
authored
Apr 15, 2023
by
Emika Chamodi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
local changes
parent
6d26cf12
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
NodeServer/src/routes/user.ts
NodeServer/src/routes/user.ts
+2
-1
NodeServer/src/utilities/requests.ts
NodeServer/src/utilities/requests.ts
+1
-1
No files found.
NodeServer/src/routes/user.ts
View file @
f0cb13f8
...
...
@@ -13,6 +13,7 @@ router.post(
async
(
req
:
TypedRequest
<
{
userId
:
string
},
CandidateType
>
,
res
)
=>
{
try
{
const
update
=
req
.
body
;
await
Candidates
.
findByIdAndUpdate
(
req
.
query
.
userId
,
{
$set
:
update
});
if
(
req
.
body
?.
resume
)
{
const
data
:
any
=
await
ResumeAPI
.
extractResumeData
({
user_id
:
req
.
query
.
userId
,
...
...
@@ -26,7 +27,7 @@ router.post(
video_url
:
req
.
body
.
selfIntro
,
});
}
await
Candidates
.
findByIdAndUpdate
(
req
.
query
.
userId
,
{
$set
:
req
.
body
});
return
res
.
status
(
200
).
json
({
data
:
req
.
body
});
}
catch
(
error
)
{
return
res
.
status
(
400
).
send
(
error
);
...
...
NodeServer/src/utilities/requests.ts
View file @
f0cb13f8
...
...
@@ -31,7 +31,7 @@ export const request = (
data
,
params
,
headers
,
timeout
:
3
0000
,
timeout
:
9
0000
,
})
.
then
(
async
(
response
:
AxiosResponse
)
=>
{
resolve
(
response
.
data
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment