mirror of https://github.com/apibillme/broker
fix key for event
This commit is contained in:
parent
c18bce2263
commit
3570138bb8
|
@ -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
|
||||
|
|
|
@ -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(())
|
||||
|
|
Loading…
Reference in New Issue