Skip to content

Commit

Permalink
fix changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
jr1221 committed Nov 10, 2024
1 parent 7ad87d4 commit eda7acf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scylla-server/src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub struct Data {
pub runId: i32,
}

#[derive(Queryable, Debug, Identifiable, Insertable, Selectable, Serialize)]
#[derive(Queryable, Debug, Identifiable, Insertable, Selectable, Serialize, AsChangeset)]
#[diesel(table_name = crate::schema::dataType)]
#[diesel(primary_key(name))]
#[diesel(check_for_backend(diesel::pg::Pg))]
Expand Down
2 changes: 1 addition & 1 deletion scylla-server/src/services/data_type_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub async fn upsert_data_type(
.values(&val)
.on_conflict(dataType::name)
.do_update()
.set(val)
.set(&val)
.returning(DataType::as_returning())
.get_result(db)
}

0 comments on commit eda7acf

Please sign in to comment.