fix-Fix-the-bug-where,-when-file-upload-is-enabled,-messages-cannot-be-sent-in-the-chat-window-after-transitioning-from-the-old-workflow-features-structure-to-the-new-one

fix-Fix-the-bug-where,-when-file-upload-is-enabled,-messages-cannot-be-sent-in-the-chat-window-after-transitioning-from-the-old-workflow-features-structure-to-the-new-one
This commit is contained in:
Likename Haojie 2024-10-26 01:22:29 +08:00 committed by GitHub
parent 8942f528bb
commit 09c23c6918
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -151,14 +151,6 @@ class Workflow(db.Model):
@property @property
def features(self) -> str: def features(self) -> str:
"""
Convert old features structure to new features structure.
"""
if not self._features:
return self._features
features = json.loads(self._features)
self._features = json.dumps(features)
return self._features return self._features
@features.setter @features.setter