fix key for event

This commit is contained in:
Bevan Hunt 2021-03-25 17:48:49 -07:00
parent c18bce2263
commit 3570138bb8
2 changed files with 7 additions and 2 deletions

View File

@ -4,7 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [9.0.x] - 2021-04-25
## [9.0.1] - 2021-04-25
### Fixed
- keys on event
## [9.0.0] - 2021-04-25
### Removed
- removed tenant_name from event - uses users event name

View File

@ -137,7 +137,7 @@ fn get_events() -> Result<Vec<Event>> {
}
fn puts_event(event: Event) -> Result<()> {
let key = format!("events_{}", event.event);
let key = format!("events_{}", event.id);
let value = rmp_serde::to_vec_named(&event)?;
replace(key, value)?;
Ok(())