farmbot_os/farmbot_core/lib/farmbot_core/asset/query.ex

15 lines
279 B
Elixir

defmodule FarmbotCore.Asset.Query do
@moduledoc """
Get data from the database
"""
alias FarmbotCore.Asset
@callback auto_sync?() :: boolean()
@doc "Returns the configuration value for auto_sync"
def auto_sync?() do
Asset.fbos_config().auto_sync
end
end