gitscope
← marzneshin / Diff · 5f664c5 → 5f664c5
Changes 5f664c5..5f664c5
Patch commit
diff --git a/app/models/user.py b/app/models/user.py
index 41919a2..3a45b79 100644
--- a/app/models/user.py
+++ b/app/models/user.py
@@ -184,6 +184,12 @@ class UserResponse(User):
# subscription_url: str = ""
model_config = ConfigDict(from_attributes=True)
+ @computed_field
+ @property
+ def service_ids(self) -> List[int]:
+ return [s.id for s in self.services]
+
+
@computed_field
@property
def links(self) -> List[str]: