mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-20 01:10:59 +00:00
perf(pipeline): currently not allowed to change is_default field
This commit is contained in:
@@ -86,6 +86,9 @@ class PipelineService:
|
|||||||
del pipeline_data['for_version']
|
del pipeline_data['for_version']
|
||||||
if 'stages' in pipeline_data:
|
if 'stages' in pipeline_data:
|
||||||
del pipeline_data['stages']
|
del pipeline_data['stages']
|
||||||
|
if 'is_default' in pipeline_data:
|
||||||
|
del pipeline_data['is_default']
|
||||||
|
|
||||||
await self.ap.persistence_mgr.execute_async(
|
await self.ap.persistence_mgr.execute_async(
|
||||||
sqlalchemy.update(persistence_pipeline.LegacyPipeline).where(persistence_pipeline.LegacyPipeline.uuid == pipeline_uuid).values(**pipeline_data)
|
sqlalchemy.update(persistence_pipeline.LegacyPipeline).where(persistence_pipeline.LegacyPipeline.uuid == pipeline_uuid).values(**pipeline_data)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user