added settings API + fixed bug (#62)
* added settings API + fixed bug * removed redundant API funcs * comment clarifications --------- Co-authored-by: Wyatt <wyatt@modrinth.com>
This commit is contained in:
1 parent
6a05276a21
commit
a13b7a2566
12 files changed
+140
-22
No files matched your search
@@ -87,7 +87,7 @@ async fn main() -> theseus::Result<()> {
|
||||
// Attempt to get the default user, if it exists, and refresh their credentials
|
||||
let default_user_uuid = {
|
||||
let settings = st.settings.read().await;
|
||||
settings.default_user.clone()
|
||||
settings.default_user
|
||||
};
|
||||
let credentials = if let Some(uuid) = default_user_uuid {
|
||||
println!("Attempting to refresh existing authentication.");
|
||||
|
||||
Reference in new issue
Block a user