Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions client/resources/simplestore/simplestore.go
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ func (s *Store) invoiceExpired(ctx context.Context, order *Order) {
// Remove pending invoice if exists.
s.removePendingInvoice(order)

// Mark order as paid. First, reload the full order from disk.
// Mark order as canceled. First, reload the full order from disk.
orderDir := filepath.Join(s.root, ordersDir, order.User.String())
orderFname := filepath.Join(orderDir, orderFnamePattern.FilenameFor(uint64(order.ID)))
order = new(Order)
Expand All @@ -496,7 +496,7 @@ func (s *Store) invoiceExpired(ctx context.Context, order *Order) {
}

// Now update status.
order.Status = StatusPaid
order.Status = StatusCanceled
if err := jsonfile.Write(orderFname, order, s.log); err != nil {
s.log.Warnf("Unable to write order %s: %v", orderFname, err)
return
Expand Down
Loading