mirror of
https://github.com/parse-community/parse-server
synced 2026-08-09 13:03:18 +00:00
fix: Rate limit feature is incompatible with Node 14 (#8578)
This commit is contained in:
+1
-1
@@ -512,7 +512,7 @@ export const addRateLimit = (route, config, cloud) => {
|
||||
},
|
||||
});
|
||||
}
|
||||
let transformPath = route.requestPath.replaceAll('/*', '/(.*)');
|
||||
let transformPath = route.requestPath.split('/*').join('/(.*)');
|
||||
if (transformPath === '*') {
|
||||
transformPath = '(.*)';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user