bug fixes

This commit is contained in:
= 2021-03-21 08:53:33 +11:00
parent 2eb7de95ad
commit 36ffeb9344
2 changed files with 2 additions and 2 deletions

View File

@ -241,7 +241,7 @@ class BaseDriver extends AbstractPaymentDriver
event(new PaymentWasCreated($payment, $payment->company, Ninja::eventVars())); event(new PaymentWasCreated($payment, $payment->company, Ninja::eventVars()));
(new BillingSubscriptionService)->completePurchase($this->payment_hash); //(new BillingSubscriptionService)->completePurchase($this->payment_hash);
return $payment->service()->applyNumber()->save(); return $payment->service()->applyNumber()->save();
} }

View File

@ -15,7 +15,7 @@ class AddInvoiceIdToClientSubscriptionsTable extends Migration
{ {
Schema::table('client_subscriptions', function (Blueprint $table) { Schema::table('client_subscriptions', function (Blueprint $table) {
$table->unsignedInteger('invoice_id')->nullable(); $table->unsignedInteger('invoice_id')->nullable();
$table->unsignedInteger('quantity')->default(1);
$table->foreign('invoice_id')->references('id')->on('invoices')->onDelete('cascade')->onUpdate('cascade'); $table->foreign('invoice_id')->references('id')->on('invoices')->onDelete('cascade')->onUpdate('cascade');
}); });
} }