Skip to content

Commit

Permalink
Merge pull request #1028 from telefonicaid/fix/check_data_fill_service
Browse files Browse the repository at this point in the history
check data in fillService facility
  • Loading branch information
fgalan authored May 5, 2021
2 parents 440e0f2 + d2fa348 commit 6b9cf44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES_NEXT_RELEASE
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- Fix: check access to data in fillService facility
- Fix: use expressionLanguage defined in group is not defined at device level (#1027)
- Fix: ensure service of groups, device and commands is stored in mongo in lowercase (#1023)
- Add: add getTypeSilently for device group and use in device registration to avoid false mongo alarm
Expand Down
4 changes: 2 additions & 2 deletions lib/services/common/domain.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,11 @@ function finishSouthboundTransaction(callback) {
* @return {Object} New context containing service information.
*/
function fillService(context, data) {
if (data.service) {
if (data && data.service) {
context.srv = data.service;
}

if (data.subservice) {
if (data && data.subservice) {
context.subsrv = data.subservice;
}

Expand Down

0 comments on commit 6b9cf44

Please sign in to comment.