Move listenbrainz user to env var
This commit is contained in:
1 parent
9c689d73d6
commit
5ff56d8396
3 files changed
+18
-16
No files matched your search
+1
-1
@@ -61,7 +61,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
}
|
||||
|
||||
async fn index(State(pool): State<PgPool>) -> String {
|
||||
let response = listenbrainz::recordings("jellywx", StatsRange::Week)
|
||||
let response = listenbrainz::recordings(env::var("LISTENBRAINZ_USER")?, StatsRange::Week)
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
|
||||
Reference in new issue
Block a user