mirror of
https://github.com/strapi/strapi.git
synced 2025-11-09 22:59:14 +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
|
* @returns {Object} populate object
|
||||||
*/
|
*/
|
||||||
const getQueryPopulate = async (uid, query) => {
|
const getQueryPopulate = async (uid, query) => {
|
||||||
const pathToPopulate = (path) => path.replaceAll('.', '.populate.');
|
const pathToPopulate = (path) => path.replace(/\./g, '.populate.');
|
||||||
let populateQuery = {};
|
let populateQuery = {};
|
||||||
|
|
||||||
await strapiUtils.traverse.traverseQueryFilters(
|
await strapiUtils.traverse.traverseQueryFilters(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user