Add group-event booking flow with Telegram invite delivery#13
Open
Aguthcoder wants to merge 1 commit intocodex/implement-group-based-matching-enginefrom
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
TelegramGroupEntity(telegram_groups) witheventId(unique),groupId, andinviteLink, and linked it toEventEntityas a one-to-one relation.EventReservationEntity(event_reservations) with a uniqueness constraint on(event_id, user_id)and payment fieldspayment_status,payment_reference, andpaid_at.POST /events/reserveto run inside a DB transaction usingDataSource.transactionwith apessimistic_writelock on theeventsrow, enforced payment requirement for paid events, prevented duplicate bookings, checked Telegram group existence, atomically incrementedreservedCount, and returnedtelegramInviteLinkin the success payload.TelegramGroupEntityin theEventsModule, updated controller to accept optionalpaymentReference, updated frontendreserveEventtyping to return the telegram link, and changed the payment-success page to use a dynamictelegramLinkand button labelورود به گروه تلگرام.backend/docs/group-event-telegram-system.mddescribing DB schemas, APIs, booking rules, success response, and frontend redirect example.Testing
npm install/npm run buildfor the backend, but the automatednestbuild step failed in this environment because the Nest CLI binary was not available, so the backend build did not complete (failure).npm run buildfor the frontend, but the automatednextbuild step failed because the Next.js binary was not available in the environment (failure)./payment-successpage to validate the dynamic Telegram link, but it failed withERR_EMPTY_RESPONSEbecause no local frontend server was running on port3000(failure).Codex Task