Skip to content

Commit

Permalink
Force order_date when creating ticket easily
Browse files Browse the repository at this point in the history
  • Loading branch information
lukynmatuska committed Sep 21, 2024
1 parent 75525d7 commit e0a1023
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/services/ticket.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ def create_ticket_easily(
# Check if they can create ticket
if not can_create_ticket_in_ticket_group(t.group_id, db=db):
return None

t.order_date = datetime.now()

# Write ticket to database
t_db: ticket.Ticket = models.Ticket.create(db_session=db, **t.model_dump())
Expand Down

0 comments on commit e0a1023

Please sign in to comment.