Skip to content

Commit

Permalink
Include admin email and private id
Browse files Browse the repository at this point in the history
This will generate an additional email that can be used to find the
admin panel.
  • Loading branch information
mariocj89 committed Dec 2, 2024
1 parent 64b040b commit ab24120
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eas/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ def create(self, request, *args, **kwargs):
{
"lang": data["language"],
"mails": emails,
"draw_id": draw.id,
"admin_email": data.get("admin_email"),
}
)
LOG.info("Created secret santa results %s", results)
Expand Down
2 changes: 2 additions & 0 deletions swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1507,6 +1507,8 @@ components:
type: array
items:
type: string
admin_email:
type: string
SecretSantaResult:
type: object
properties:
Expand Down

0 comments on commit ab24120

Please sign in to comment.