Skip to content

Commit

Permalink
Trigger updates on cohdb when querying for user.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantaylor committed Feb 18, 2024
1 parent f9e48fe commit 366356a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src-tauri/src/plugins/cohdb/auth/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ pub async fn upload<R: Runtime>(
.text("replay[public]", "false")
.part("replay[file]", Part::bytes(data).file_name(file_name));
let res = client
.post("https://cohdb.com/api/v1/replays/upload")
.post("http://localhost:3000/api/v1/replays/upload")
.multipart(form)
.send()
.await
Expand Down Expand Up @@ -284,7 +284,7 @@ fn build_client(secret: &String) -> Result<Client> {

async fn query_user(client: &Client) -> Result<MeResponse> {
let res = client
.get("https://cohdb.com/api/v1/users/me")
.get("https://cohdb.com/api/v1/users/me?source=coh3stats")
.send()
.await
.map_err(Http)?;
Expand Down

0 comments on commit 366356a

Please sign in to comment.