Fix FRE-5402: Add missing @shieldai/removebrokers dependency and fix compilation blockers
- Add @shieldai/removebrokers workspace dependency to API package.json - Fix misleading error message: 'Admin access required' -> 'Support access required' - Export RemovalRequest, InfoBroker, BrokerListing types from @shieldai/db - Export RemovalStatus, RemovalMethod, BrokerCategory enums from @shieldai/db - Fix BrokerAlertPipeline: correlationPipeline -> correlationService.ingestGenericAlert - Add @shieldai/correlation dependency to removebrokers package - Fix removalUrl null vs undefined type mismatch in RemoveBrokersService - Fix shared-billing package.json typo: @shieldsai -> @shieldai for shared-notifications
This commit is contained in:
@@ -57,8 +57,8 @@ export class BrokerAlertPipeline {
|
||||
|
||||
private async normalizeAndSend(alert: NormalizedAlertInput) {
|
||||
try {
|
||||
const { correlationPipeline } = await import("@shieldai/correlation");
|
||||
return correlationPipeline.normalizeAlert(alert);
|
||||
const { correlationService } = await import("@shieldai/correlation");
|
||||
return correlationService.ingestGenericAlert(alert);
|
||||
} catch {
|
||||
console.error("[BrokerAlert] Failed to send alert:", alert.sourceAlertId);
|
||||
return alert;
|
||||
|
||||
@@ -236,7 +236,7 @@ export class RemoveBrokersService {
|
||||
throw new Error(`Invalid personal info in request ${requestId}`);
|
||||
}
|
||||
const stillListed = await this.checkBrokerListing(
|
||||
request.broker,
|
||||
{ ...request.broker, removalUrl: request.broker.removalUrl || undefined },
|
||||
personalInfo,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user