✨ feat(config): add eol query function
- add `eol_query` function to `EolRule` struct - function returns a string with the current date formatted as "YYYY-MM-DD"
This commit is contained in:
committed by
Jeremiah Russell
parent
749616d5ff
commit
66edab897f
@@ -132,6 +132,10 @@ impl EolRule {
|
||||
self.id,
|
||||
)
|
||||
}
|
||||
|
||||
pub(crate) fn eol_query(&self) -> String {
|
||||
format!("before: {}", chrono::Local::now().format("%Y-%m-%d"))
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
||||
Reference in New Issue
Block a user