Implement remaining methods
This commit is contained in:
parent
4abb538db7
commit
9157308398
2 changed files with 138 additions and 4 deletions
|
|
@ -91,6 +91,7 @@ impl Adaptor for SqlAdaptor {
|
|||
}
|
||||
|
||||
async fn get_event(&self, id: String) -> Result<Option<Event>, Self::Error> {
|
||||
// TODO: mark as visited
|
||||
Ok(event::Entity::find_by_id(id)
|
||||
.one(&self.db)
|
||||
.await?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue