forked from jmug/stoatchat
Notifications: Remove ServerCreate event.
This commit is contained in:
@@ -53,7 +53,7 @@ pub struct Server {
|
||||
}
|
||||
|
||||
impl Server {
|
||||
pub async fn publish(self) -> Result<()> {
|
||||
pub async fn create(self) -> Result<()> {
|
||||
get_collection("servers")
|
||||
.insert_one(
|
||||
to_document(&self).map_err(|_| Error::DatabaseError {
|
||||
@@ -68,9 +68,6 @@ impl Server {
|
||||
with: "server",
|
||||
})?;
|
||||
|
||||
let server_id = self.id.clone();
|
||||
ClientboundNotification::ServerCreate(self).publish(server_id);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user