docs: add missing mime_type in digital products recipe (#5569)

* docs: add missing mime_type in digital products recipe

* fix lint error
This commit is contained in:
Shahed Nasser
2023-11-06 14:35:23 +02:00
committed by GitHub
parent f88d75b0a7
commit 0c9216c225

View File

@@ -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<ProductMedia> {
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<