From e6cadc73edf20b4f959e8811cf7944d57fe6a5da Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Tue, 3 Sep 2024 19:09:30 +0200 Subject: Fix typo --- src/graphql/types/alert.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/graphql/types/alert.rs b/src/graphql/types/alert.rs index 9e2add5..ab82c2e 100644 --- a/src/graphql/types/alert.rs +++ b/src/graphql/types/alert.rs @@ -158,7 +158,7 @@ pub async fn get_alerts<'ctx>( .unwrap(), }; - let positions: Vec = rows + let alerts: Vec = rows .iter() .map(|row| Alert { id: row.get("id"), @@ -171,7 +171,7 @@ pub async fn get_alerts<'ctx>( }) .collect(); - Ok(Some(positions)) + Ok(Some(alerts)) } } } -- cgit v1.2.3-18-g5258