Skip to content

Commit

Permalink
#31 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
syjer committed Jan 12, 2015
1 parent 8a4d719 commit 0d4b730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/alfio/repository/TicketRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ List<Integer> selectTicketInCategoryForUpdate(@Bind("eventId") int eventId, @Bin
@Query("update ticket set status = 'INVALIDATED' where id in (:ids)")
int invalidateTickets(@Bind("ids") List<Integer> ids);

@Query("update ticket set original_price_cts = :priceInCents where event_id = :eventId and category_id = :categoryId")
@Query("update ticket set original_price_cts = :priceInCents, paid_price_cts = :priceInCents where event_id = :eventId and category_id = :categoryId")
int updateTicketPrice(@Bind("categoryId") int categoryId, @Bind("eventId") int eventId, @Bind("priceInCents") int priceInCents);

@Query("update ticket set status = 'FREE', tickets_reservation_id = null, special_price_id_fk = null where status in ('PENDING', 'OFFLINE_PAYMENT') "
Expand Down

0 comments on commit 0d4b730

Please sign in to comment.