pub async fn get_alerts<'ctx>( ctx: &Context<'ctx>, id: Option<i32>, limit: Option<i64>, offset: Option<i64>, ) -> Result<Option<Vec<Alert>>, AppError>
Get alerts from the database