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,4 +1,4 @@
import { Injectable } from '@nestjs/common';
import { Injectable, NotFoundException, ForbiddenException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { Module } from '../../entities/module.entity';
@@ -44,7 +44,7 @@ export class StoreService {
const module = await this.moduleRepo.findOne({ where: { id: moduleId } });
if (!module) {
throw new Error('Module not found');
throw new NotFoundException('Module not found');
}
const purchase = this.purchaseRepo.create({
@@ -64,7 +64,7 @@ export class StoreService {
});
if (!purchase) {
throw new Error('Module not purchased');
throw new ForbiddenException('Module not purchased');
}
// Stub - would create module_installation record