mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-05-06 10:58:14 +00:00
Change to using _.has
This commit is contained in:
parent
c62db0867e
commit
38df4651cb
@ -372,7 +372,7 @@ application.update = update = (force) ->
|
|||||||
_.map remoteAppIds, (appId) ->
|
_.map remoteAppIds, (appId) ->
|
||||||
if remoteAppEnvs[appId][key]? && specialActionCallback?
|
if remoteAppEnvs[appId][key]? && specialActionCallback?
|
||||||
# This makes the Special Action Envs only trigger their functions once.
|
# This makes the Special Action Envs only trigger their functions once.
|
||||||
if executedSpecialActionEnvVars[key]?
|
if _.has(executedSpecialActionEnvVars, key)
|
||||||
if executedSpecialActionEnvVars[key] != remoteAppEnvs[appId][key]
|
if executedSpecialActionEnvVars[key] != remoteAppEnvs[appId][key]
|
||||||
specialActionCallback(remoteAppEnvs[appId][key])
|
specialActionCallback(remoteAppEnvs[appId][key])
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user