mirror of
https://github.com/strapi/strapi.git
synced 2025-11-03 03:17:11 +00:00
fix: replace all for node14
This commit is contained in:
parent
b571f2f511
commit
296aa4b53c
@ -221,7 +221,7 @@ const getDeepPopulateDraftCount = (uid) => {
|
||||
* @returns {Object} populate object
|
||||
*/
|
||||
const getQueryPopulate = async (uid, query) => {
|
||||
const pathToPopulate = (path) => path.replaceAll('.', '.populate.');
|
||||
const pathToPopulate = (path) => path.replace(/\./g, '.populate.');
|
||||
let populateQuery = {};
|
||||
|
||||
await strapiUtils.traverse.traverseQueryFilters(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user