mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 09:32:41 +00:00
fix: put es template parsing
This commit is contained in:
@@ -98,7 +98,7 @@ commander
|
|||||||
const srcPath = resolve(relativeSrcPath);
|
const srcPath = resolve(relativeSrcPath);
|
||||||
|
|
||||||
// get project reflection
|
// get project reflection
|
||||||
const templates = JSON.parse(srcPath) as ElasticsearchTemplateCollection;
|
const templates = require(srcPath) as ElasticsearchTemplateCollection;
|
||||||
|
|
||||||
for (const template in templates) {
|
for (const template in templates) {
|
||||||
if (!templates.hasOwnProperty(template)) {
|
if (!templates.hasOwnProperty(template)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user