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