mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
fix(backend): remove PII-exposing fields from public waitlist model
Remove `owner` (User type) and `storeListing` (StoreListingWithVersions) fields from StoreWaitlistEntry. These fields were never populated but exposed PII types (email, stripe_customer_id, etc.) in the OpenAPI schema. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -4,7 +4,6 @@ from typing import List
|
||||
import prisma.enums
|
||||
import pydantic
|
||||
|
||||
from backend.data.model import User
|
||||
from backend.util.models import Pagination
|
||||
|
||||
|
||||
@@ -220,9 +219,9 @@ class ReviewSubmissionRequest(pydantic.BaseModel):
|
||||
|
||||
|
||||
class StoreWaitlistEntry(pydantic.BaseModel):
|
||||
"""Public waitlist entry - no PII fields exposed."""
|
||||
|
||||
waitlistId: str
|
||||
storeListing: StoreListingWithVersions | None = None
|
||||
owner: User | None = None
|
||||
slug: str
|
||||
|
||||
# Content fields
|
||||
|
||||
Reference in New Issue
Block a user