Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

chore(models): convert created_by_role to its value for consistency (#9612)

-LAN-0e965b652987
diff --git a/api/models/model.py b/api/models/model.py
index 07c6247e0d1..e289423d161 100644
--- a/api/models/model.py
+++ b/api/models/model.py
@@ -1109,7 +1109,7 @@ class MessageFile(db.Model):
self.url = url
self.belongs_to = belongs_to
self.upload_file_id = upload_file_id
- self.created_by_role = created_by_role
+ self.created_by_role = created_by_role.value
self.created_by = created_by
id: Mapped[str] = db.Column(StringUUID, server_default=db.text("uuid_generate_v4()"))