Update SyncServerTask to sync depend on the sync_on? attribute.
continuous-integration/drone/push Build is passing Details

dev
KKlochko 2 months ago
parent 981e1f0b92
commit 3b761f9c66

@ -13,7 +13,7 @@ defmodule DecentralisedBookIndex.SyncTasks.SyncServerTask do
params = params(last_sync_datetime)
for server <- servers do
sync_one(server, params)
if server.sync_on?, do: sync_one(server, params)
end
:ok

Loading…
Cancel
Save