Skip to content

Commit 63b0621

Browse files
Change attendant creation endpoint
Co-authored-by: Odd Stråbø <oddstr13@openshell.no>
1 parent ba6d4d1 commit 63b0621

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

backendapi/views.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,6 @@ def create_attendant(request):
5959
return Response(
6060
{
6161
"message": "Attendant created successfully.",
62-
"data": {
63-
"ticket_id": attendant.ticket_id,
64-
"nfc_id": b16encode(attendant.nfc_id),
65-
"discord": "",
66-
"is_crew": attendant.is_crew,
67-
"is_valid": attendant.is_valid,
68-
}
62+
"id": attendant.id,
6963
}
7064
)

0 commit comments

Comments
 (0)