From 2e732644b1a78712dd5802567338517f441012f0 Mon Sep 17 00:00:00 2001 From: Fabio Bonelli Date: Fri, 5 Jul 2024 11:43:09 +0200 Subject: [PATCH] fix: correctly set the Publisher id when alternativeId is present --- apiclient/apiclient.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apiclient/apiclient.go b/apiclient/apiclient.go index ee019f0..c8de545 100644 --- a/apiclient/apiclient.go +++ b/apiclient/apiclient.go @@ -173,7 +173,7 @@ page: // This way, we also take a minimalist approach to Publisher concept in the crawler, // having just one id. if p.AlternativeID != "" { - id = p.ID + id = p.AlternativeID } publishers = append(publishers, common.Publisher{ ID: id,