Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design1
/
RIT_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
박권수
2021-08-19 21:19:32 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
2536dc74a06f611fe1138612c9c886db8863ccaf
2536dc74
2 parents
08289c61
324075d9
Merge branch 'server' into web
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
server/src/api/doctor/index.js
server/src/models/patientInfo.js
server/src/api/doctor/index.js
View file @
2536dc7
...
...
@@ -36,7 +36,6 @@ doctor.get('/patient/:patientId', doctorCtrl.getPatientDetail);
*/
doctor
.
get
(
'/bottle/:bottleId'
,
doctorCtrl
.
getBottleDetail
);
/**
* 현재 로그인한 유저(의사)의 특정 관리 환자의 특이사항을 기록함
* request parameter : reqUserId, info
...
...
@@ -53,7 +52,6 @@ doctor.patch('/patient', doctorCtrl.writeReqPatientReport);
*/
doctor
.
post
(
'/bottle'
,
doctorCtrl
.
writeReqBottleFeedback
);
/**
* 현재 로그인한 유저(의사)가 이메일로 유저를 검색함
* request parameter : patientId
...
...
server/src/models/patientInfo.js
View file @
2536dc7
...
...
@@ -37,9 +37,9 @@ PatientInfoSchema.methods.setUseYn = function(useYn) {
PatientInfoSchema
.
methods
.
updateInfo
=
function
(
info
)
{
const
date
=
moment
(
new
Date
()).
format
(
'YYYY-MM-DD hh:mm'
);
if
(
this
.
info
.
length
)
this
.
info
=
this
.
info
.
concat
(
'\n\n'
,
`
${
date
}
=>
${
info
}
`
);
this
.
info
=
this
.
info
.
concat
(
'\n\n'
,
`
${
date
}
➡
${
info
}
`
);
else
this
.
info
=
`
${
date
}
=>
${
info
}
`
;
this
.
info
=
`
${
date
}
➡
${
info
}
`
;
};
...
...
Please
register
or
login
to post a comment