pub async fn sync_refs( tx: &Transaction<'_>, owner_id: i32, id: i32, version: i32, html: &str, ) -> Result<(), AppError>