Просмотр исходного кода

have updateOrder also update the update joint table [order by account]

beltram 3 лет назад
Родитель
Сommit
2e128056dc
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      acme/db/nosql/order.go

+ 6 - 0
acme/db/nosql/order.go

@@ -117,6 +117,12 @@ func (db *DB) UpdateOrder(ctx context.Context, o *acme.Order) error {
 	nu.Status = o.Status
 	nu.Error = o.Error
 	nu.CertificateID = o.CertificateID
+
+	_, err = db.updateAddOrderIDs(ctx, o.AccountID, o.ID)
+	if err != nil {
+		return err
+	}
+
 	return db.save(ctx, old.ID, nu, old, "order", orderTable)
 }