typ refactor

This commit is contained in:
2026-06-03 22:08:44 +02:00
parent 16f8a929d2
commit b3b7b75ea8
22 changed files with 92 additions and 64 deletions

View File

@@ -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)