fix: delete bots; fetch public if owner

This commit is contained in:
Paul Makles
2022-04-24 13:45:14 +01:00
parent 00cb132d29
commit fad540a87a
4 changed files with 9 additions and 6 deletions

View File

@@ -15,5 +15,5 @@ pub async fn delete_bot(db: &Db, user: User, target: Ref) -> Result<EmptyRespons
return Err(Error::NotFound);
}
db.delete_bot(&bot.id).await.map(|_| EmptyResponse)
bot.delete(db).await.map(|_| EmptyResponse)
}