···147147 Ok(count.count.unwrap_or(0))
148148 }
149149150150- /// Gets all slice URIs that have lexicons defined.
150150+ /// Gets all slice URIs from network.slices.slice records.
151151 ///
152152- /// Useful for discovering all active slices in the system.
152152+ /// Returns all slices that exist in the system
153153 pub async fn get_all_slices(&self) -> Result<Vec<String>, DatabaseError> {
154154 let rows: Vec<(String,)> = sqlx::query_as(
155155 r#"
156156- SELECT DISTINCT json->>'slice' as slice_uri
156156+ SELECT DISTINCT uri as slice_uri
157157 FROM record
158158- WHERE collection = 'network.slices.lexicon'
159159- AND json->>'slice' IS NOT NULL
158158+ WHERE collection = 'network.slices.slice'
160159 "#,
161160 )
162161 .fetch_all(&self.pool)