[feat] use eti game.db, commit not working, something is wrong with game.id in the client/frontend

This commit is contained in:
2024-11-12 22:12:49 +01:00
parent ba2177abf0
commit 1388bc2115
17 changed files with 790 additions and 310 deletions

View File

@ -6,7 +6,7 @@ use tracing::error;
#[derive(Debug, Serialize, Deserialize)]
pub enum Request {
ListGames,
GetGame { id: u64 },
GetGame { id: String },
Invalid(Vec<u8>, String),
}
@ -14,7 +14,7 @@ pub enum Request {
pub enum Response {
Games(Vec<Game>),
Game(Game),
GameNotFound(u64),
GameNotFound(String),
InvalidRequest(Vec<u8>, String),
EncodingError(String),
DecodingError(Vec<u8>, String),