This commit is contained in:
IGNY8 VPS (Salman)
2025-12-01 04:51:09 +00:00
parent 71a38435b1
commit d97a96a7c4
4 changed files with 173 additions and 48 deletions

View File

@@ -1906,10 +1906,10 @@ export async function fetchSeedKeywords(filters?: {
/**
* Add SeedKeywords to workflow (create Keywords records)
*/
export async function addSeedKeywordsToWorkflow(seedKeywordIds: number[], siteId: number, sectorId: number): Promise<{ success: boolean; created: number; errors?: string[] }> {
export async function addSeedKeywordsToWorkflow(seedKeywordIds: number[], siteId: number, sectorId: number): Promise<{ success: boolean; created: number; skipped?: number; errors?: string[] }> {
try {
// fetchAPI extracts data from unified format {success: true, data: {...}}
// So response is already the data object: {created: X, ...}
// So response is already the data object: {created: X, skipped: X, errors: [...]}
const response = await fetchAPI('/v1/planner/keywords/bulk_add_from_seed/', {
method: 'POST',
body: JSON.stringify({