Skip to content

Commit

Permalink
Merge pull request #2 from amiller68/deploy-fix
Browse files Browse the repository at this point in the history
fix: rm old migrations
  • Loading branch information
amiller68 authored Jan 22, 2024
2 parents d725900 + ca71cfd commit 668d171
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
6 changes: 0 additions & 6 deletions migrations/20240120183833_todos.sql

This file was deleted.

1 change: 0 additions & 1 deletion migrations/20240120224711_todos.down.sql

This file was deleted.

5 changes: 3 additions & 2 deletions src/database/models/game.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ impl NewGame {
}
}

#[allow(dead_code)]
#[derive(Debug, FromRow)]
pub struct Game {
id: Uuid,
Expand Down Expand Up @@ -100,7 +101,7 @@ impl PartialGameWithFen {
pub fn current_fen(&self) -> &str {
&self.current_fen
}

pub async fn read(conn: &PgPool, id: Uuid) -> Result<Option<PartialGameWithFen>, sqlx::Error> {
let game = sqlx::query_as!(
PartialGameWithFen,
Expand All @@ -118,4 +119,4 @@ impl PartialGameWithFen {
.await?;
Ok(game)
}
}
}

0 comments on commit 668d171

Please sign in to comment.