Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions src/recoup/getProArtists.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
import { logger } from "@trigger.dev/sdk/v3";
import { z } from "zod";
import { NEW_API_BASE_URL, RECOUP_API_KEY } from "../consts";

const proArtistsResponseSchema = z.object({
status: z.literal("success"),
artists: z.array(z.string()),
});

const PRO_ARTISTS_API_URL = "https://api.recoupable.com/api/artists/pro";

export async function getProArtists(): Promise<string[] | undefined> {
if (!RECOUP_API_KEY) {
logger.error("RECOUP_API_KEY not configured");
return undefined;
}

const url = `${NEW_API_BASE_URL}/api/admins/artists/pro`;
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot Apr 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Custom agent: Flag AI Slop and Fabricated Changes

Implemented route does not match the PR’s stated migration target, indicating a fabricated or inaccurate change claim.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At src/recoup/getProArtists.ts, line 16:

<comment>Implemented route does not match the PR’s stated migration target, indicating a fabricated or inaccurate change claim.</comment>

<file context>
@@ -13,7 +13,7 @@ export async function getProArtists(): Promise<string[] | undefined> {
   }
 
-  const url = `${NEW_API_BASE_URL}/api/artists/pro`;
+  const url = `${NEW_API_BASE_URL}/api/admins/artists/pro`;
 
   try {
</file context>
Fix with Cubic


try {
const response = await fetch(PRO_ARTISTS_API_URL, {
const response = await fetch(url, {
method: "GET",
headers: {
"Content-Type": "application/json",
"x-api-key": RECOUP_API_KEY,
},
});

Expand Down
Loading