fix: Wave 1 — critical bug fixes across 9 files
All checks were successful
Test Asgard Runner / test (push) Successful in 3s

- Fix double-prefix URL bugs in 4 analytics/revenue views (/api/api → /api)
- Fix AdminDashboard quick-links routing (/platform-admin/* → /admin/*)
- Fix MigrationView import missing Authorization header
- Remove dead ConsoleModule from app.module (conflicts with NatsBridgeGateway on /ws)
- Fix store.service.ts raw Error throws → NotFoundException/ForbiddenException
- Fix payment-order entity FK (webstore_subscription_id → WebstoreSubscription)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Vantz Stockwell
2026-02-21 13:24:24 -05:00
parent b2ca0c6f0b
commit 208622000c
10 changed files with 59 additions and 15 deletions

View File

@@ -1,6 +1,7 @@
import { Entity, PrimaryGeneratedColumn, Column, ManyToOne, JoinColumn, Check } from 'typeorm';
import { Module } from './module.entity';
import { License } from './license.entity';
import { WebstoreSubscription } from './webstore-subscription.entity';
@Entity('payment_orders')
@Check(`"status" IN ('pending', 'completed', 'failed', 'refunded')`)
@@ -52,7 +53,7 @@ export class PaymentOrder {
@JoinColumn({ name: 'license_id' })
license: License;
@ManyToOne(() => License, { onDelete: 'SET NULL', nullable: true })
@ManyToOne(() => WebstoreSubscription, { onDelete: 'SET NULL', nullable: true })
@JoinColumn({ name: 'webstore_subscription_id' })
webstore_subscription: License | null;
webstore_subscription: WebstoreSubscription | null;
}