refactor: simplify scope struct macro

This commit is contained in:
Zomatree
2025-07-22 00:08:33 +01:00
parent 83c15404a5
commit 14ea180683
4 changed files with 12 additions and 12 deletions

View File

@@ -106,11 +106,8 @@ pub async fn token(
let authorized_bot_id = AuthorizedBotId { bot: claims.client_id.clone(), user: claims.sub.clone() };
let auth_bot = db.fetch_authorized_bot(&authorized_bot_id).await;
println!("{auth_bot:?}");
if auth_bot.is_err_and(|err| err.error_type == ErrorType::NotFound) {
println!("inserting");
db.insert_authorized_bot(&AuthorizedBot {
id: authorized_bot_id,
created_at: Timestamp::now_utc(),