From ee98a228998410b189217616e2777cb78494a564 Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Thu, 1 Sep 2022 16:21:40 +0000 Subject: [PATCH] bug fixed --- src/compositions/betting/composition.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compositions/betting/composition.rs b/src/compositions/betting/composition.rs index 57fb3f2..7b058af 100644 --- a/src/compositions/betting/composition.rs +++ b/src/compositions/betting/composition.rs @@ -203,7 +203,7 @@ impl Composition { Ok(query_ordery_by) } - fn get_find_all(&self, find_all: &models::FindAll) -> Result { + fn get_where(&self, find_all: &models::FindAll) -> Result { let mut query_where = String::new(); if let Some(s) = &find_all.search { @@ -519,7 +519,7 @@ impl Composition { write!(&mut query, "{}", BETTING_HISTORY_COUNT_QUERY) .map_err(|e| diesel::result::Error::QueryBuilderError(e.to_string().into()))?; - let query_where = self.get_find_all(find_all)?; + let query_where = self.get_where(find_all)?; if !query_where.is_empty() { write!(&mut query, " WHERE {}", query_where) .map_err(|e| diesel::result::Error::QueryBuilderError(e.to_string().into()))?; @@ -546,7 +546,7 @@ impl Composition { write!(&mut query, "{}", BETTING_HISTORY_QUERY) .map_err(|e| diesel::result::Error::QueryBuilderError(e.to_string().into()))?; - let query_where = self.get_find_all(find_all)?; + let query_where = self.get_where(find_all)?; if !query_where.is_empty() { write!(&mut query, " WHERE {}", query_where) .map_err(|e| diesel::result::Error::QueryBuilderError(e.to_string().into()))?;