update_user_state

Function update_user_state 

Source
pub async fn update_user_state(
    state: &AppState,
    user_id: &str,
) -> Result<(), AppError>
Expand description

Re-read the full user state from the database and reconcile it into the user’s Automerge doc.

No-op if the user has not been initialized (i.e. the user has never called get_or_create_user_state_doc).