async def get_sync(
        self,
        db: AsyncSession,
        sync_id: UUID,
        current_user: schemas.User,
        with_connections: bool = False,
    ) -> schemas.Sync:
        """Get a specific sync by ID.

        Args:
        ----
            db (AsyncSession): The database session.
            sync_id (UUID): The ID of the sync to get.
            current_user (schemas.User): The current user.
            with_connections (bool): Whether to include connections.

        Returns:
        -------
            schemas.Sync: The sync.

        Raises:
        ------
            HTTPException: If the sync is not found.
        """
        sync = await crud.sync.get(
            db=db, id=sync_id, current_user=current_user, with_connections=with_connections
        )
        if not sync:
            raise HTTPException(status_code=404, detail="Sync not found")
        return sync
Get a specific sync by ID.

        Args:
        ----
            db (AsyncSession): The database session.
            sync_id (UUID): The ID of the sync to get.
            current_user (schemas.User): The current user.
            with_connections (bool): Whether to include connections.

        Returns:
        -------
            schemas.Sync: The sync.

        Raises:
        ------
            HTTPException: If the sync is not found.
        
backend/airweave/core/sync_service.py