Converted the Api to a Restful api.

This commit is contained in:
Roflin committed 2026-01-24 12:52:12 +01:00
1 parent 79ba1e1b44
commit 9d3c5afb07
50 files changed
+2194 -1939

No files matched your search

+2 -2
View File
@@ -33,9 +33,9 @@ pub fn disown_game(conn: &mut PgConnection, owned_game: OwnedGame) -> Result<usi
.execute(conn)?)
}
pub fn owned_games(conn: &mut PgConnection, uuid: Uuid) -> Result<Vec<(Uuid, Option<Uuid>)>, DatabaseError> {
pub fn owned_games(conn: &mut PgConnection, uuid: Uuid) -> Result<Vec<(Uuid, Uuid, Option<Uuid>)>, DatabaseError> {
Ok(owned_game::table
.select((owned_game::game_id, owned_game::location_id))
.select((owned_game::user_id, owned_game::game_id, owned_game::location_id))
.filter(owned_game::user_id.eq(uuid))
.get_results(conn)?)
}