Skip to content

Commit

Permalink
bluetooth and microservice creation on fog update fix: (#362)
Browse files Browse the repository at this point in the history
if trying to update fog from cli then userId for bluetooth or hal microservices got from oldFog data instead of user obj? which doesn't exists in cli call
  • Loading branch information
mchepelev authored and dbusel committed Nov 15, 2018
1 parent b375bdb commit 74db44a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/iofog-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ async function _updateFog(fogData, user, isCli, transaction) {
iofogUuid: fogData.uuid,
rootHostAccess: true,
logSize: 50,
userId: user.id,
userId: isCli ? oldFog.userId : user.id,
configLastUpdated: Date.now()
};

Expand Down Expand Up @@ -206,7 +206,7 @@ async function _updateFog(fogData, user, isCli, transaction) {
iofogUuid: fogData.uuid,
rootHostAccess: true,
logSize: 50,
userId: user.id,
userId: isCli ? oldFog.userId : user.id,
configLastUpdated: Date.now()
};

Expand Down

0 comments on commit 74db44a

Please sign in to comment.