Add status reporting to auth server

This commit is contained in:
NG (Graham) committed 2025-11-03 19:24:20 -05:00
1 parent 7579963893
commit 2583429af8
28 files changed
+216 -18

No files matched your search

+6
View File
@@ -83,6 +83,12 @@ impl super::IntercomUser for super::account_json::UserData {
log::error!("Failed to send intercom maintenance mode message: {}", e);
}
}
async fn update_status(&self, server_name: &str, msg: oj_serdes::ServerStatus) {
if let Err(e) = self.post_to_intercom(&msg, ".status", server_name).await {
log::error!("Failed to send intercom status message: {}", e);
}
}
}
#[derive(Serialize, Deserialize, Clone, Debug)]