mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 18:33:55 +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;
|
||||
};
|
||||
|
||||
const filterValidRelationalAttributes = (attributes: Record<string, any>) => {
|
||||
export const filterValidRelationalAttributes = (attributes: Record<string, any>) => {
|
||||
const isOwner = (attribute: any) => {
|
||||
return attribute.owner || (!attribute.mappedBy && !attribute.morphBy);
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user