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

pull/9722/head
-LAN- 1 year ago committed by GitHub
parent a9db06f5e7
commit 0e965b6529
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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()"))

Loading…
Cancel
Save