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 1866525 commit 7697bda
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 @@ -23,7 +23,7 @@ pub async fn create(db: &DatabaseConnection, organization_model: Model) -> Resul
Ok(organization_active_model.insert(db).await?)
}

pub async fn update(db: &DatabaseConnection, id: i32, model: Model) -> Result<Model, Error> {
pub async fn update(db: &DatabaseConnection, id: Id, model: Model) -> Result<Model, Error> {
let result = find_by_id(db, id).await?;

match result {
Expand Down

0 comments on commit 7697bda

Please sign in to comment.