fix: oopsie

This commit is contained in:
LuanRT
2022-06-14 20:10:12 -03:00
parent 7e6f944a4b
commit 71309a0788
2 changed files with 2 additions and 3 deletions

View File

@@ -7,13 +7,12 @@ This will eventually replace the old parser.
## Methods
#### parse(data: object, ctx?: any)
#### parse(data: object)
Responsible for parsing specifically the `contents` property of the response object.
##### Arguments
* `data` - the `contents` property.
* `ctx` - optional, can be used to give additional context to the parser.
#### parseResponse(data: object)

View File

@@ -106,7 +106,7 @@ class Parser {
const keys = Object.keys(item);
const classname = this.sanitizeClassName(keys[0]);
if (this.shouldIgnore(classname)) {
if (!this.shouldIgnore(classname)) {
try {
const TargetClass = require('./classes/' + classname);
results.push(new TargetClass(item[keys[0]]));