From 0e965b652987b60ca85e5888e595fbf92668c2f9 Mon Sep 17 00:00:00 2001 From: -LAN- Date: Tue, 22 Oct 2024 21:56:26 +0800 Subject: [PATCH] chore(models): convert created_by_role to its value for consistency (#9612) --- api/models/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/models/model.py b/api/models/model.py index 07c6247e0..e289423d1 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()"))