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:
1 parent
f88d75b0a7
commit
0c9216c225
1 file changed
+3
-1
@@ -408,7 +408,8 @@ class ProductMediaService extends TransactionBaseService {
|
|||||||
|
|
||||||
async create(
|
async create(
|
||||||
data: Pick<
|
data: Pick<
|
||||||
ProductMedia, "name" | "file_key" | "variant_id" | "type"
|
ProductMedia,
|
||||||
|
"name" | "file_key" | "variant_id" | "type" | "mime_type"
|
||||||
>
|
>
|
||||||
): Promise<ProductMedia> {
|
): Promise<ProductMedia> {
|
||||||
return this.atomicPhase_(async (manager) => {
|
return this.atomicPhase_(async (manager) => {
|
||||||
@@ -498,6 +499,7 @@ export const POST = async (
|
|||||||
file_key,
|
file_key,
|
||||||
type = "main",
|
type = "main",
|
||||||
name,
|
name,
|
||||||
|
mime_type,
|
||||||
} = req.body
|
} = req.body
|
||||||
|
|
||||||
const productMediaService = req.scope.resolve<
|
const productMediaService = req.scope.resolve<
|
||||||
|
|||||||
Reference in new issue
Block a user