From 0d63375620c7352996f6d7d62031dd856dc70b11 Mon Sep 17 00:00:00 2001 From: Diogo Mateus Date: Mon, 30 Oct 2023 17:11:56 +0000 Subject: [PATCH] Change the Attachment type from string to []byte. This allows images to be created with attachments --- image.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image.go b/image.go index 0e0b7068..09ce420f 100644 --- a/image.go +++ b/image.go @@ -33,7 +33,7 @@ type Image struct { Width int `json:"width,omitempty"` Height int `json:"height,omitempty"` Src string `json:"src,omitempty"` - Attachment string `json:"attachment,omitempty"` + Attachment []byte `json:"attachment,omitempty"` Filename string `json:"filename,omitempty"` VariantIds []int64 `json:"variant_ids,omitempty"` AdminGraphqlApiId string `json:"admin_graphql_api_id,omitempty"`