Skip to content

Commit e9b6b30

Browse files
feat/update rfid (#301)
* update rfid * hotfix: hard code attendee --------- Co-authored-by: Phoenix <71522316+h1divp@users.noreply.github.com>
1 parent f00052e commit e9b6b30

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/api/internal/api/handlers/events.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,9 @@ func (h *EventHandler) UpdateUserRFID(w http.ResponseWriter, r *http.Request) {
949949
return
950950
}
951951

952-
err = h.eventService.UpdateEventRoleByIds(r.Context(), userId, eventId, nil, nil, &payload.RFID)
952+
tempRole := sqlc.EventRoleTypeAttendee
953+
954+
err = h.eventService.UpdateEventRoleByIds(r.Context(), userId, eventId, &tempRole, nil, &payload.RFID)
953955
if err != nil {
954956
res.SendError(w, http.StatusNotFound, res.NewError("error", "Something went wrong internally."))
955957
return

0 commit comments

Comments
 (0)