Skip to content

Commit

Permalink
Update entity_api/src/organization.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Jim Hodapp <[email protected]>
  • Loading branch information
calebbourg and jhodapp authored Dec 5, 2023
1 parent 7697bda commit 45a8792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entity_api/src/organization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub async fn find_all(db: &DatabaseConnection) -> Result<Vec<Model>, Error> {
Ok(Entity::find().all(db).await?)
}

pub async fn find_by_id(db: &DatabaseConnection, id: i32) -> Result<Option<Model>, Error> {
pub async fn find_by_id(db: &DatabaseConnection, id: Id) -> Result<Option<Model>, Error> {
let organization = Entity::find_by_id(id).one(db).await?;
debug!("Organization found: {:?}", organization);

Expand Down

0 comments on commit 45a8792

Please sign in to comment.