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-05-11 04:16:19 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
864051619b05c10852836fbf029e2362e79c2bc1
86405161
1 parent
7b4b4e11
feat. status add
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
server/src/api/hub/hub.ctrl.js
server/src/api/medicine/medicine.ctrl.js
server/src/api/hub/hub.ctrl.js
View file @
8640516
...
...
@@ -33,4 +33,6 @@ exports.hubDisconnect = async(ctx) => {
Mqtt
.
mqttOff
(
hosting
);
await
Hub
.
deleteOne
({
hubId
});
ctx
.
status
=
200
;
}
\ No newline at end of file
...
...
server/src/api/medicine/medicine.ctrl.js
View file @
8640516
...
...
@@ -15,6 +15,7 @@ exports.medicineSearch = async(ctx) => {
else
if
(
target
&&
target
!==
''
&&
target
!==
undefined
)
result
=
await
medicineSearch_ByTarget
(
target
);
ctx
.
status
=
200
;
ctx
.
body
=
{
totalItem
:
result
.
length
,
result
...
...
Please
register
or
login
to post a comment