From ae591e5e7e04914c2857eb07315890f2dc5784c7 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Mon, 27 May 2019 18:12:57 +0900 Subject: [PATCH] Fixed outdated parser --- .../kitsu-characters-parse.go | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/jobs/kitsu-characters-parse/kitsu-characters-parse.go b/jobs/kitsu-characters-parse/kitsu-characters-parse.go index 6207a082..28d88a1e 100644 --- a/jobs/kitsu-characters-parse/kitsu-characters-parse.go +++ b/jobs/kitsu-characters-parse/kitsu-characters-parse.go @@ -21,9 +21,6 @@ func main() { for kitsuCharacter := range kitsuCharacters { character := &arn.Character{ - HasID: arn.HasID{ - ID: kitsuCharacter.ID, - }, Name: arn.CharacterName{ Canonical: kitsuCharacter.Attributes.CanonicalName, English: kitsuCharacter.Attributes.Names.En, @@ -35,13 +32,13 @@ func main() { }, Description: kitsuCharacter.Attributes.Description, Attributes: []*arn.CharacterAttribute{}, - HasMappings: arn.HasMappings{ - Mappings: []*arn.Mapping{ - { - Service: "kitsu/character", - ServiceID: kitsuCharacter.ID, - }, - }, + } + + character.ID = kitsuCharacter.ID + character.Mappings = []*arn.Mapping{ + { + Service: "kitsu/character", + ServiceID: kitsuCharacter.ID, }, }