// UpdateOrder saves an updated ACME Order to the database.
UpdateOrder saves an updated ACME Order to the database.
// UpdateOrder saves an updated ACME Order to the database .
func (db *DB) UpdateOrder(ctx context.Context, o *acme.Order) error {
	old, err := db.getDBOrder(ctx, o.ID)
	if err != nil {
		return err
	}
	nu := old.clone()
	nu.Status = o.Status
	nu.Error = o.Error
	nu.CertificateID = o.CertificateID
	return db.save(ctx, old.ID, nu, old, "order", orderTable)
}
func ( db * DB ) UpdateOrder ( ctx context . Context , o * acme . Order ) error { old , err := db . getDBOrder ( ctx , o . ID ) if err != nil { return err } nu := old . clone ( ) nu . Status = o . Status nu . Error = o . Error nu . CertificateID = o . CertificateID return db . save ( ctx , old . ID , nu , old , " " , orderTable ) }
UpdateOrder saves an updated ACME Order to the database.
UpdateOrder saves an updated ACME Order to the database .