From 96f321b4171e31d7fa92d5461cb257ad59ea4553 Mon Sep 17 00:00:00 2001 From: MillenniumEarl Date: Thu, 4 Mar 2021 10:56:06 +0100 Subject: [PATCH] Missing parenthesis when invoking constructor --- src/scripts/classes/query/handiwork-search-query.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/classes/query/handiwork-search-query.ts b/src/scripts/classes/query/handiwork-search-query.ts index d0419bb..a488d40 100644 --- a/src/scripts/classes/query/handiwork-search-query.ts +++ b/src/scripts/classes/query/handiwork-search-query.ts @@ -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];