async def get_all(self, db: AsyncSession) -> list[schemas.Sync]:
        """Get all syncs.

        Args:
            db (AsyncSession): The database session
            current_user (Optional[schemas.User]): The current user

        Returns:
            list[Sync | schemas.Sync]: The syncs, enriched if current_user is provided
        """
        stmt = select(Sync)
        result = await db.execute(stmt)
        syncs = result.scalars().unique().all()

        # Enrich syncs if current_user is provided
        return await self.enricher_for_all(db, syncs)
Get all syncs.

        Args:
            db (AsyncSession): The database session
            current_user (Optional[schemas.User]): The current user

        Returns:
            list[Sync | schemas.Sync]: The syncs, enriched if current_user is provided
        
backend/airweave/crud/crud_sync.py