Update visited date when event is fetched
This commit is contained in:
parent
9157308398
commit
aa3b323cb6
3 changed files with 24 additions and 9 deletions
|
|
@ -21,6 +21,7 @@ pub trait Adaptor: Send + Sync {
|
|||
async fn get_people(&self, event_id: String) -> Result<Option<Vec<Person>>, Self::Error>;
|
||||
async fn upsert_person(&self, event_id: String, person: Person) -> Result<Person, Self::Error>;
|
||||
|
||||
/// Get an event and update visited date to current time
|
||||
async fn get_event(&self, id: String) -> Result<Option<Event>, Self::Error>;
|
||||
async fn create_event(&self, event: Event) -> Result<Event, Self::Error>;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue