Fix auto-withdraw deploy and accept POST on wallet settings route.
Deploy Ladill Mini / deploy (push) Successful in 37s

Drop the fragile column ordering in the migration and allow POST as well as PUT so the mobile clients can save auto-withdraw after deploy.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-12 08:02:42 +00:00
co-authored by Cursor
parent 2c4eaf1241
commit b952020890
2 changed files with 2 additions and 2 deletions
@@ -9,7 +9,7 @@ return new class extends Migration
public function up(): void
{
Schema::table('qr_settings', function (Blueprint $table) {
$table->unsignedBigInteger('auto_withdraw_amount_minor')->nullable()->after('notify_payouts');
$table->unsignedBigInteger('auto_withdraw_amount_minor')->nullable();
});
}
+1 -1
View File
@@ -67,7 +67,7 @@ Route::prefix('v1')->group(function () {
Route::put('/mini/wallet/payout-account', [MiniWalletController::class, 'updatePayoutAccount'])->name('api.mini.wallet.payout-account.update');
Route::get('/mini/wallet/withdrawals', [MiniWalletController::class, 'withdrawals'])->name('api.mini.wallet.withdrawals');
Route::post('/mini/wallet/withdraw', [MiniWalletController::class, 'withdraw'])->name('api.mini.wallet.withdraw');
Route::put('/mini/wallet/auto-withdraw', [MiniWalletController::class, 'updateAutoWithdraw'])->name('api.mini.wallet.auto-withdraw');
Route::match(['put', 'post'], '/mini/wallet/auto-withdraw', [MiniWalletController::class, 'updateAutoWithdraw'])->name('api.mini.wallet.auto-withdraw');
Route::get('/mini/support/tickets', [MiniSupportController::class, 'tickets'])->name('api.mini.support.tickets');
Route::post('/mini/support/tickets', [MiniSupportController::class, 'store'])->name('api.mini.support.tickets.store');