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:25 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
324075d9cf0f5f9ae4e51d7946eba797816e467f
324075d9
1 parent
72a856af
style. code style
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 @
324075d
...
...
@@ -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 @
324075d
...
...
@@ -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