Implement remaining methods

This commit is contained in:
Ben Grant 2023-05-15 16:30:08 +10:00
parent 4abb538db7
commit 9157308398
2 changed files with 138 additions and 4 deletions

View file

@ -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?