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

This commit is contained in:
-LAN-
2024-10-22 21:56:26 +08:00
committed by GitHub
parent a9db06f5e7
commit 0e965b6529

View File

@@ -1109,7 +1109,7 @@ class MessageFile(db.Model):
self.url = url self.url = url
self.belongs_to = belongs_to self.belongs_to = belongs_to
self.upload_file_id = upload_file_id 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 self.created_by = created_by
id: Mapped[str] = db.Column(StringUUID, server_default=db.text("uuid_generate_v4()")) id: Mapped[str] = db.Column(StringUUID, server_default=db.text("uuid_generate_v4()"))