Skip to content

fix: return created event in CreateEvent response - #202

Open
lecodyy wants to merge 1 commit into
acmcsufoss:mainfrom
lecodyy:fix/event-create-return-resource
Open

lecodyy wants to merge 1 commit into
acmcsufoss:mainfrom
lecodyy:fix/event-create-return-resource

Conversation

@lecodyy

@lecodyy lecodyy commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Closes #193

CreateEvent used to return a vague success statement that didn't specify what event was created. This fix returns the full event object in its response now.

Closes acmcsufoss#193. CreateEvent previously only returned a success message.
Since all event fields are client-provided (no server-generated fields),
the handler now returns the created event as dto.Event instead of
querying the database again.
@lecodyy
lecodyy requested a review from TheJolman as a code owner September 24, 2026 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create resource should return the resource

1 participant