Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit ce35fbc7 authored by Ferdinand57's avatar Ferdinand57
Browse files

A little bug fixing

parent ef3a070c
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@ use rocket::serde::{Deserialize, Serialize};
use rocket::log;
use rocket::serde::json::to_string;
use rocket::tokio;
use bambangshop::REQUEST_CLIENT;
use bambangshop::REQWEST_CLIENT;
use crate::model::notification::Notification;
#[derive(Debug, Clone, Deserialize, Serialize)]
......@@ -15,7 +15,7 @@ pub struct Subscriber {
impl Subscriber {
#[tokio::main]
pub async fn update(&self, payload: Notification) {
REQUEST_CLIENT
REQWEST_CLIENT
.post(&self.url)
.header("Content-Type", "JSON")
.body(to_string(&payload).unwrap())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment