Let `set_user_env` create a FarmwareEnv asset

FarmwareEnvs are mirrored on the bot state already
pull/974/head
connor rigby 2019-07-26 08:21:54 -07:00 committed by Connor Rigby
parent 7a3db8f287
commit 405da18d3d
No known key found for this signature in database
GPG Key ID: 29A88B24B70456E0
1 changed files with 2 additions and 1 deletions

View File

@ -122,7 +122,8 @@ defmodule FarmbotOS.SysCalls do
@impl true
def set_user_env(key, value) do
FarmbotCore.BotState.set_user_env(key, value)
_ = Asset.new_farmware_env(%{key: key, value: value})
:ok
end
@impl true