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:48:37 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
fab971a18839c77729d8ffdc0e2a8282c22ffa8f
fab971a1
2 parents
62110d32
54bd9bdb
Merge branch 'server' into web
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
server/src/util/DataProcess.js
server/src/util/DataProcess.js
View file @
fab971a
...
...
@@ -84,11 +84,11 @@ const transPublishingTopicAndMessage = async(bottleId) => {
const
topic
=
'bottle/'
+
bottleId
+
'/stb'
;
const
bottleMedicine
=
await
BottleMedicine
.
findOne
({
bottleId
,
useYn
:
'Y'
});
const
takeMedicineHist
=
await
TakeMedicineHist
.
find
({
const
takeMedicineHist
List
=
await
TakeMedicineHist
.
find
({
bmId
:
bottleMedicine
.
_id
}).
sort
({
takeDate
:
'asc'
})
[
0
]
;
}).
sort
({
takeDate
:
'asc'
});
const
message
=
'res/'
+
await
transDate
(
takeMedicineHist
.
takeDate
)
+
'/'
+
bottleMedicine
.
dosage
;
const
message
=
'res/'
+
await
transDate
(
takeMedicineHist
List
[
0
]
.
takeDate
)
+
'/'
+
bottleMedicine
.
dosage
;
return
{
topic
,
...
...
Please
register
or
login
to post a comment