Missing parenthesis when invoking constructor

pull/75/head
MillenniumEarl 2021-03-04 10:56:06 +01:00
parent f9f852c003
commit 96f321b417
1 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ export default class HandiworkSearchQuery implements IQuery {
private castToLatest(): LatestSearchQuery {
// Cast the basic query object and copy common values
const query: LatestSearchQuery = new LatestSearchQuery;
const query: LatestSearchQuery = new LatestSearchQuery();
Object.keys(this).forEach(key => {
if (query.hasOwnProperty(key)) {
query[key] = this[key];
@ -155,7 +155,7 @@ export default class HandiworkSearchQuery implements IQuery {
private castToThread(): ThreadSearchQuery {
// Cast the basic query object and copy common values
const query: ThreadSearchQuery = new ThreadSearchQuery;
const query: ThreadSearchQuery = new ThreadSearchQuery();
Object.keys(this).forEach(key => {
if (query.hasOwnProperty(key)) {
query[key] = this[key];