mirror of
https://github.com/strapi/strapi.git
synced 2025-11-03 03:17:11 +00:00
fix: export filterValidRelationalAttributes
This commit is contained in:
parent
ec1b520bac
commit
069bb8d99a
@ -332,7 +332,7 @@ export const createLinkQuery = (strapi: Core.Strapi, trx?: Knex.Transaction) =>
|
|||||||
return query;
|
return query;
|
||||||
};
|
};
|
||||||
|
|
||||||
const filterValidRelationalAttributes = (attributes: Record<string, any>) => {
|
export const filterValidRelationalAttributes = (attributes: Record<string, any>) => {
|
||||||
const isOwner = (attribute: any) => {
|
const isOwner = (attribute: any) => {
|
||||||
return attribute.owner || (!attribute.mappedBy && !attribute.morphBy);
|
return attribute.owner || (!attribute.mappedBy && !attribute.morphBy);
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user