From 0c9216c2254d0be8f2b0068eddfe1d3f8cde8c08 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Mon, 6 Nov 2023 14:35:23 +0200 Subject: [PATCH] docs: add missing mime_type in digital products recipe (#5569) * docs: add missing mime_type in digital products recipe * fix lint error --- www/apps/docs/content/recipes/digital-products.mdx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/apps/docs/content/recipes/digital-products.mdx b/www/apps/docs/content/recipes/digital-products.mdx index 2b01ccaa05..44235e6539 100644 --- a/www/apps/docs/content/recipes/digital-products.mdx +++ b/www/apps/docs/content/recipes/digital-products.mdx @@ -408,7 +408,8 @@ class ProductMediaService extends TransactionBaseService { async create( data: Pick< - ProductMedia, "name" | "file_key" | "variant_id" | "type" + ProductMedia, + "name" | "file_key" | "variant_id" | "type" | "mime_type" > ): Promise { return this.atomicPhase_(async (manager) => { @@ -498,6 +499,7 @@ export const POST = async ( file_key, type = "main", name, + mime_type, } = req.body const productMediaService = req.scope.resolve<