Skip to content

Commit

Permalink
fix: editing will parse response correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
chaosteil committed Feb 19, 2024
1 parent 30c1b52 commit 2838d1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/rest/gateway.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::time::Duration;
use std::{collections::HashMap, time::Duration};

use chrono::Utc;
use color_eyre::{
Expand Down Expand Up @@ -282,7 +282,7 @@ impl Gateway {

/// Same as [`Gateway::post`], but doesn't require content to be set for the POST request.
async fn post_empty<T: Serialize>(&self, path: &str, content: &T) -> Result<()> {
self.post::<_, String>(path, content).await?;
self.post::<_, Task>(path, content).await?;
Ok(())
}
}
Expand Down

0 comments on commit 2838d1c

Please sign in to comment.