1
0
Fork 0
forked from TWS/kalkutago

Compare commits

..

No commits in common. "033f2a561baa3272a4dbadbcbb2e0cdd7eb713ca" and "bc6f06e210c3dce810b61879deb8d4adb96def78" have entirely different histories.

2 changed files with 2 additions and 3 deletions

View file

@ -32,7 +32,7 @@ async fn get_track_check_user(
track_id: i32,
user: &users::Model,
) -> Result<Json<tracks::Model>, Either<Status, api::ErrorResponder>> {
if let Some(Some(track)) = user
if let Some(Some(user)) = user
.find_related(Tracks)
.filter(tracks::Column::Id.eq(track_id))
.one(db)
@ -40,7 +40,7 @@ async fn get_track_check_user(
.transpose()
.map(|it| it.ok())
{
Ok(Json(track))
Ok(Json(user))
} else {
Err(Left(Status::NotFound))
}

View file

@ -95,7 +95,6 @@ impl Update {
if receiver_count > 0 {
trace!(receiver_count = receiver_count, update = as_serde!(self); "sending update");
let count = tx.send(self.clone())?;
trace!(count = count; "update sent");
} else {
trace!("no update receivers, skipping message");
}