FIX(promotions): resolve user UUID before saving application events #3

Merged
Ghasemi merged 1 commit from feature/debug-v2 into master 2026-08-18 07:05:15 -04:00

1 commit

Author SHA1 Message Date
1536016f14 FIX(promotions): resolve user UUID before saving application events
ApplicationEventViewSet.perform_create() was passing the full request.user
model instance into Event.user (a plain UUIDField), which raises on every
real call. Use the same _resolve_user() -> user.uuid pattern already used by
status(), and raise UnprocessableEntity on save_event failure to match the
v1 endpoint's error-handling convention.
2026-08-18 14:26:14 +03:30