24 moves the catchment db synchronisation outside of the main app sync operation; however, it now only syncs when a db is initialised (new user, change of user). This means that on the rare occasion catchments do change we need to manually reinitialise all dbs - not ideal.
Desired Solution
Can we add a global flag or something to the autoUpdateBahis function so that whenever a user logs in for the first time after an update, we run synchroniseCatchments?
Problem
24 moves the catchment db synchronisation outside of the main app sync operation; however, it now only syncs when a db is initialised (new user, change of user). This means that on the rare occasion catchments do change we need to manually reinitialise all dbs - not ideal.
Desired Solution
Can we add a global flag or something to the
autoUpdateBahis
function so that whenever a user logs in for the first time after an update, we runsynchroniseCatchments
?Considered Alternatives
A manual sync button in the UI?
Additional Context
No response