message: Fixed token limit
diff: @@ -29,16 +29,16 @@ export default class EMSPTokensEndpoint extends AbstractEndpoint {
  public async process(req: Request, res: Response, next: NextFunction, tenant: Tenant, ocpiEndpoint: OCPIEndpoint): Promise<OCPIResponse> {
  switch (req.method) {
  case 'POST':
  - return await this.authorizeRequest(req, res, next, tenant);
  + return this.authorizeRequest(req, res, next, tenant);
  case 'GET':
  - return await this.getTokensRequest(req, res, next, tenant);
  + return this.getTokensRequest(req, res, next, tenant);
  }
  }
  private async getTokensRequest(req: Request, res: Response, next: NextFunction, tenant: Tenant): Promise<OCPIResponse> {
  // Get query parameters
  const offset = (req.query.offset) ? Utils.convertToInt(req.query.offset) : 0;
  - const limit = (req.query.limit && Utils.convertToInt(req.query.limit) < Constants.OCPI_RECORDS_LIMIT) ? Utils.convertToInt(req.query.limit) : Constants.OCPI_RECORDS_LIMIT;
  + const limit = Utils.convertToInt(req.query.limit) > 0 ? Utils.convertToInt(req.query.limit) : Constants.DB_RECORD_COUNT_NO_LIMIT;
  // Get all tokens
  const tokens = await OCPIUtilsService.getTokens(tenant, limit, offset, Utils.convertToDate(req.query.date_from), Utils.convertToDate(req.query.date_to));
  // Set header
  