cc-core-cli
Advanced tools
Comparing version 1.0.120 to 1.0.121
{ | ||
"name": "cc-core-cli", | ||
"version": "1.0.120", | ||
"version": "1.0.121", | ||
"description": "Command Line Interface tool for generating project templates for the (Your Platform's Name) platform.", | ||
@@ -5,0 +5,0 @@ "main": "bin/index.js", |
@@ -157,2 +157,6 @@ import * as _ from "lodash"; | ||
): Promise<any> { | ||
const { keywords, filters, page, page_size, sort, grouping } = query; | ||
const searchKey = `${keywords || ""}${ | ||
_.isEmpty(filters) ? "" : JSON.stringify(filters) | ||
}${page || ""}${page_size || ""}${sort || ""}${grouping || ""}`; | ||
if ( | ||
@@ -164,3 +168,6 @@ !["mail_setting"].includes(params.entity) && | ||
} else { | ||
if (/^(?=[a-f\d]{24}$)(\d+[a-f]|[a-f]+\d)/i.test(params.key)) { | ||
if ( | ||
/^(?=[a-f\d]{24}$)(\d+[a-f]|[a-f]+\d)/i.test(params.key) || | ||
_.isEmpty(searchKey) | ||
) { | ||
return this.service.findOne( | ||
@@ -172,3 +179,2 @@ params.entity, | ||
} | ||
const { keywords, filters, page, page_size, sort, grouping } = query; | ||
return this.service.searchWithLayout( | ||
@@ -175,0 +181,0 @@ params.entity, |
@@ -258,3 +258,2 @@ import * as dotenv from "dotenv"; | ||
fastify.get("/", (request, reply) => { | ||
console.log("Serving / from custom route"); | ||
reply | ||
@@ -261,0 +260,0 @@ .type("text/html") |
2610570
5925