New Issue Checklist
Issue Description
When I set rate limit in the cloud code, the rate limit is not working.
Steps to reproduce
When I set options on parse server config the rate limit is working, like below code.
rateLimit: { requestPath: '/functions/someFunction', requestTimeWindow: 15 * 60 * 1000, requestCount: 3, }
but i'm trying to set rate limit in the cloud code, the rate limit is not working. like below code
Parse.Cloud.define('someFunction', () => { return 'Hello world'; }, { rateLimit: { requestTimeWindow: 60 * 60 * 1000, requestCount: 3, } });
Server
- Parse Server version:
6.2.1
- Operating system:
Ubuntu 20
- Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc):
Local
Database
- System (MongoDB or Postgres):
MongoDB
- Database version:
6.0
- Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc):
Local
Client
- SDK (iOS, Android, JavaScript, PHP, Unity, etc):
JavaScript
- SDK version:
4.1.0
New Issue Checklist
Issue Description
When I set rate limit in the cloud code, the rate limit is not working.
Steps to reproduce
When I set options on parse server config the rate limit is working, like below code.
rateLimit: { requestPath: '/functions/someFunction', requestTimeWindow: 15 * 60 * 1000, requestCount: 3, }but i'm trying to set rate limit in the cloud code, the rate limit is not working. like below code
Parse.Cloud.define('someFunction', () => { return 'Hello world'; }, { rateLimit: { requestTimeWindow: 60 * 60 * 1000, requestCount: 3, } });Server
6.2.1Ubuntu 20LocalDatabase
MongoDB6.0LocalClient
JavaScript4.1.0