chore(task_queue): add logging

This commit is contained in:
Paul committed 2021-11-02 13:41:08 +00:00
1 parent 012a30ce61
commit 8eb6f5a8af
5 files changed
+16 -16

No files matched your search

+1 -15
View File
@@ -5,9 +5,7 @@ use crate::{
util::result::{Error, Result},
};
use mongodb::{
bson::{doc, to_bson, DateTime, Document},
};
use mongodb::bson::{doc, to_bson, DateTime};
use rocket::serde::json::Value;
use serde::{Deserialize, Serialize};
use ulid::Ulid;
@@ -325,15 +323,3 @@ impl Message {
Ok(())
}
}
async fn update_channels_last_message(channels: &Collection, channel_id: &String, set: &Document) {
channels
.update_one(
doc! { "_id": channel_id },
doc! { "$set": set },
None,
)
.await
.expect("Server should not run with no, or a corrupted db");
}