mirror of
https://github.com/strapi/strapi.git
synced 2025-12-26 06:35:47 +00:00
Fix filter findOne params
This commit is contained in:
parent
05b699f557
commit
252082f84e
@ -37,7 +37,7 @@ module.exports = {
|
||||
|
||||
fetch: (params) => {
|
||||
return <%= globalID %>
|
||||
.findOne(_.pick(params, _.keys(<%= globalID %>.schema.path)))
|
||||
.findOne(_.pick(params, _.keys(<%= globalID %>.schema.paths)))
|
||||
.populate(_.keys(_.groupBy(_.reject(strapi.models.<%= id %>.associations, {autoPopulate: false}), 'alias')).join(' '));
|
||||
},
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user