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-09-15 22:39:09 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
75e744638e8e663f546eb93e66f3b49301ca6851
75e74463
1 parent
e5332f11
fix. mongodb query error
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
server/src/util/DataProcess.js
server/src/util/DataProcess.js
View file @
75e7446
...
...
@@ -86,7 +86,7 @@ const transPublishingTopicAndMessage = async(bottleId) => {
const
bottleMedicine
=
await
BottleMedicine
.
findOne
({
bottleId
,
useYn
:
'Y'
});
const
takeMedicineHist
=
await
TakeMedicineHist
.
find
({
bmId
:
bottleMedicine
.
_id
}).
sort
(
(
a
,
b
)
=>
a
.
takeDate
<
b
.
takeDate
)[
0
];
}).
sort
(
{
takeDate
:
'asc'
}
)[
0
];
const
message
=
'res/'
+
await
transDate
(
takeMedicineHist
.
takeDate
)
+
'/'
+
bottleMedicine
.
dosage
;
...
...
Please
register
or
login
to post a comment