forked from jmug/stoatchat
feat(core/database): implement user operations
This commit is contained in:
7 files changed
+537
-6
No files matched your search
@@ -84,7 +84,7 @@ impl Bot {
|
||||
|
||||
/// Delete this bot
|
||||
pub async fn delete(&self, db: &Database) -> Result<()> {
|
||||
// db.fetch_user(&self.id).await?.mark_deleted(db).await?;
|
||||
db.fetch_user(&self.id).await?.mark_deleted(db).await?;
|
||||
db.delete_bot(&self.id).await
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user