add: patch method on stream key

This commit is contained in:
2026-07-11 14:35:35 +01:00
parent de622816cc
commit aeaed9f670
4 changed files with 72 additions and 3 deletions
+11
View File
@@ -79,3 +79,14 @@ impl Entity {
.await
}
}
impl ActiveModel {
pub async fn change_label_value(
mut self,
db: &DatabaseConnection,
value: String,
) -> Result<Model, DbErr> {
self.label = Set(value);
self.update(db).await
}
}