test mongo

This commit is contained in:
Samuel Tariku 2025-06-19 19:14:20 +03:00
parent 1e49afc5ee
commit 354890ece1

View File

@ -151,6 +151,8 @@ func (s *Service) GenerateTicketOutcome(ctx context.Context, eventID int64, mark
}
func (s *Service) CreateTicket(ctx context.Context, req domain.CreateTicketReq, clientIP string) (domain.Ticket, int64, error) {
s.mongoLogger.Info("Creating ticket")
// TODO Validate Outcomes Here and make sure they didn't expire
// Validation for creating tickets
if len(req.Outcomes) > 30 {