add: patch method on stream key
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user