diff --git a/barker/barker/routers/voucher/update.py b/barker/barker/routers/voucher/update.py index 5828b60..0eba262 100644 --- a/barker/barker/routers/voucher/update.py +++ b/barker/barker/routers/voucher/update.py @@ -71,6 +71,8 @@ def update_route( status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail="Internal error, reprints should not reach here", ) + if item.voucher_type == VoucherType.KOT and voucher_type != VoucherType.KOT: + item.date = now item.voucher_type = voucher_type item.user_id = user.id_ item.last_edit_date = now