Skip to content

Commit

Permalink
its: Fixed IssueIdRow::issue_number type
Browse files Browse the repository at this point in the history
  • Loading branch information
bouzuya committed Feb 24, 2022
1 parent e89c8c8 commit ff69402
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -37,14 +37,15 @@ pub struct SqliteIssueRepository {
query_handler: SqliteQueryHandler,
}

#[derive(Debug)]
struct IssueIdRow {
issue_number: String,
issue_number: i64,
aggregate_id: String,
}

impl IssueIdRow {
fn issue_id(&self) -> IssueId {
IssueId::from_str(self.issue_number.as_str()).unwrap()
IssueId::from_str(self.issue_number.to_string().as_str()).unwrap()
}

fn aggregate_id(&self) -> AggregateId {
Expand Down Expand Up @@ -112,7 +113,7 @@ impl SqliteIssueRepository {
RepositoryError::Unknown("Failed to convert issue_number to i64".to_string())
})?,
)
.fetch_optional(transaction)
.fetch_optional(&mut *transaction)
.await
.map_err(|e| RepositoryError::Unknown(e.to_string()))?;

Expand Down

0 comments on commit ff69402

Please sign in to comment.