Fixed bug and restructured

This commit is contained in:
2026-02-23 09:09:30 +01:00
parent a4b1ce559f
commit ffb88c86c3
4 changed files with 64 additions and 44 deletions
+3 -4
View File
@@ -1,9 +1,8 @@
use std::sync::Arc;
use sqlx::SqlitePool;
use tokio::sync::Mutex;
use crate::user::get_put;
use crate::{types::UUID, user::get_put};
pub const CLOAKS: &[&str] = &[
"mercedes_flow",
@@ -26,7 +25,7 @@ pub enum CosmeticKind {
// Buy a cosmetic
pub async fn buy(
kind: CosmeticKind,
uuid: Arc<Mutex<String>>,
uuid: UUID,
item_id: String,
pool: Arc<SqlitePool>,
) -> Result<String, String> {
@@ -65,7 +64,7 @@ pub async fn buy(
// Equip a cosmetic
pub async fn equip(
kind: CosmeticKind,
uuid: Arc<Mutex<String>>,
uuid: UUID,
item_id: String,
pool: Arc<SqlitePool>,
) -> Result<String, String> {