28.03.2025, 13:18
Resident script with 0 sleep time. It will execute full cloud sync when user access is changed and partial cloud sync is performed.
Code:
lb = require('localbus')
client = lb.new()
client:sethandler('reload', function(which)
if which == 'cloud-sync-users' then
lb.send({
action = 'reload',
which = 'cloud-sync'
})
end
end)
while true do
client:step()
end