Skip to content

Commit

Permalink
fix(server): fix youtube_channels_stats method
Browse files Browse the repository at this point in the history
  • Loading branch information
PoiScript committed Mar 29, 2023
1 parent 5ece03d commit 3af0030
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/holostats-channel-stat/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async fn bilibili_channels_stats(
let vtuber_id = match CONFIG.find_by_bilibili_channel_id(&channel.id) {
Some(vtb) => &vtb.id,
_ => {
tracing::warn!("Unkown bilibili channel id {}", channel.id.as_str());
tracing::warn!("Unknown bilibili channel id {}", channel.id.as_str());
continue;
}
};
Expand Down Expand Up @@ -85,7 +85,7 @@ async fn youtube_channels_stats(hub: &RequestHub, db: &Database, now: DateTime<U
let ids = CONFIG
.vtubers
.iter()
.filter_map(|v| v.bilibili.as_deref())
.filter_map(|v| v.youtube.as_deref())
.collect::<Vec<_>>();

let channels = hub.youtube_channels(ids).await?;
Expand All @@ -94,7 +94,7 @@ async fn youtube_channels_stats(hub: &RequestHub, db: &Database, now: DateTime<U
let vtuber_id = match CONFIG.find_by_youtube_channel_id(&channel.id) {
Some(vtb) => &vtb.id,
_ => {
tracing::warn!("Unkown youtube channel id {}", channel.id.as_str());
tracing::warn!("Unknown youtube channel id {}", channel.id.as_str());
continue;
}
};
Expand Down

0 comments on commit 3af0030

Please sign in to comment.