diff options
Diffstat (limited to 'src/channel/routes.rs')
| -rw-r--r-- | src/channel/routes.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/channel/routes.rs b/src/channel/routes.rs index 674c876..bb6cde6 100644 --- a/src/channel/routes.rs +++ b/src/channel/routes.rs @@ -6,11 +6,12 @@ use axum::{ Router, }; -use super::app::{self, EventsError}; +use super::app; use crate::{ app::App, clock::RequestedAt, error::InternalError, + events::app::EventsError, repo::{ channel::{self, Channel}, login::Login, @@ -89,7 +90,7 @@ async fn on_send( login: Login, Json(request): Json<SendRequest>, ) -> Result<StatusCode, ErrorResponse> { - app.channels() + app.events() .send(&login, &channel, &request.message, &sent_at) .await // Could impl `From` here, but it's more code and this is used once. |
