mirror of
https://github.com/strapi/strapi.git
synced 2025-08-25 09:08:52 +00:00
Use strapi.contentTypes[uid] instead of strapi.plugin().contentType() to keep the same data structure
This commit is contained in:
parent
d293ca52b1
commit
4620c330b8
@ -211,9 +211,7 @@ const addMediaAttribute = options => {
|
|||||||
context: { strapi },
|
context: { strapi },
|
||||||
} = options;
|
} = options;
|
||||||
|
|
||||||
// todo[v4]: we shouldn't have to handle differently cts fetched
|
const fileContentType = strapi.contentTypes['plugin::upload.file'];
|
||||||
// with the .contentType() & those fetched using .contentTypes
|
|
||||||
const fileContentType = strapi.plugin('upload').contentType('file').schema;
|
|
||||||
|
|
||||||
const resolve = buildAssociationResolver({
|
const resolve = buildAssociationResolver({
|
||||||
contentTypeUID: contentType.uid,
|
contentTypeUID: contentType.uid,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user