typ refactor
This commit is contained in:
@@ -8,7 +8,7 @@ impl Repository {
|
||||
pub async fn typ_update<'c, C: Queryer<'c>>(
|
||||
&self,
|
||||
db: C,
|
||||
typ: &entity::Typ,
|
||||
typ: &entity::TypUpdate,
|
||||
) -> Result<model::Typ, Error> {
|
||||
const QUERY: &str = r#"
|
||||
UPDATE typen
|
||||
@@ -17,7 +17,7 @@ impl Repository {
|
||||
"#;
|
||||
|
||||
let typ = sqlx::query_as::<_, model::Typ>(QUERY)
|
||||
.bind(typ.id)
|
||||
.bind(typ.id.to_string())
|
||||
.bind(typ.geaendert_am)
|
||||
.bind(&typ.typname)
|
||||
.fetch_one(db)
|
||||
|
||||
Reference in New Issue
Block a user