func (s *Server) handleUpdateImportedByCount(w http.ResponseWriter, r *http.Request) error {
	n, err := s.db.UpdateSearchDocumentsImportedByCount(r.Context())
	if err != nil {
		return err
	}
	fmt.Fprintf(w, "updated %d packages", n)
	return nil
}
// handleUpdateImportedByCount updates imported_by_count for all packages.
handleUpdateImportedByCount updates imported_by_count for all packages.
// handleUpdateImportedByCount updates imported_by_count for all packages .
func (s *Server) handleUpdateImportedByCount(w http.ResponseWriter, r *http.Request) error {
	n, err := s.db.UpdateSearchDocumentsImportedByCount(r.Context())
	if err != nil {
		return err
	}
	fmt.Fprintf(w, "updated %d packages", n)
	return nil
}
func ( s * Server ) handleUpdateImportedByCount ( w http . ResponseWriter , r * http . Request ) error { n , err := s . db . UpdateSearchDocumentsImportedByCount ( r . Context ( ) ) if err != nil { return err } fmt . Fprintf ( w , " " , n ) return nil }
handleUpdateImportedByCount updates imported_by_count for all packages.
handleUpdateImportedByCount updates imported_by_count for all packages .