flora is a fast and secure runtime that lets you write discord bots for your servers, with a rich TypeScript SDK, without worrying about running infrastructure. [mirror]
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: remove unused token_hash field from TokenRow

The field was selected but never read; validate_token uses a separate query.

+1 -2
+1 -2
src/tokens.rs
··· 22 22 label: Option<String>, 23 23 created_at: DateTime<Utc>, 24 24 last_used_at: Option<DateTime<Utc>>, 25 - token_hash: String, 26 25 } 27 26 28 27 #[derive(Clone)] ··· 61 60 pub async fn list_tokens(&self, user_id: &str) -> Result<Vec<UserToken>> { 62 61 let rows = sqlx::query_as::<_, TokenRow>( 63 62 r#" 64 - SELECT token_id, user_id, label, created_at, last_used_at, token_hash 63 + SELECT token_id, user_id, label, created_at, last_used_at 65 64 FROM user_tokens 66 65 WHERE user_id = $1 67 66 ORDER BY created_at DESC