박권수

feat. status add

...@@ -33,4 +33,6 @@ exports.hubDisconnect = async(ctx) => { ...@@ -33,4 +33,6 @@ exports.hubDisconnect = async(ctx) => {
33 Mqtt.mqttOff(hosting); 33 Mqtt.mqttOff(hosting);
34 34
35 await Hub.deleteOne({ hubId }); 35 await Hub.deleteOne({ hubId });
36 +
37 + ctx.status = 200;
36 } 38 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -15,6 +15,7 @@ exports.medicineSearch = async(ctx) => { ...@@ -15,6 +15,7 @@ exports.medicineSearch = async(ctx) => {
15 else if (target && target !== '' && target !== undefined) 15 else if (target && target !== '' && target !== undefined)
16 result = await medicineSearch_ByTarget(target); 16 result = await medicineSearch_ByTarget(target);
17 17
18 + ctx.status = 200;
18 ctx.body = { 19 ctx.body = {
19 totalItem : result.length, 20 totalItem : result.length,
20 result 21 result
......