Fix token refresh not resetting sync timer.

This commit is contained in:
Connor Rigby 2017-12-12 09:52:31 -08:00
parent b002f7d2a9
commit 8792faeb65

View file

@ -32,6 +32,9 @@ defmodule Farmbot.Bootstrap.AuthTask do
ConfigStorage.update_config_value(:bool, "settings", "first_boot", false)
ConfigStorage.update_config_value(:string, "authorization", "token", token)
Farmbot.System.GPIO.Leds.led_status_ok()
if ConfigStorage.get_config_value(:bool, "settings", "auto_sync") do
Farmbot.Repo.flip()
end
restart_transports()
refresh_timer(self())
{:error, reason} ->