Skip to content

Commit 1da8a43

Browse files
committed
fixing error in entity load
1 parent b7e5760 commit 1da8a43

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

marklogic-data-hub/src/main/java/com/marklogic/hub/deploy/commands/LoadUserModulesCommand.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ private DefaultModulesLoader getStagingModulesLoader(AppConfig config) {
6868
modulesLoader.setModulesManager(getModulesManager());
6969
return modulesLoader;
7070
}
71-
71+
7272
@Override
7373
public void execute(CommandContext context) {
7474
AppConfig config = context.getAppConfig();
@@ -115,7 +115,6 @@ else if (dirStr.matches(startPath.toAbsolutePath() + "[/\\\\][^/\\\\]+$")) {
115115
Modules modules = entityDefModulesFinder.findModules(dir.toFile());
116116
DocumentMetadataHandle meta = new DocumentMetadataHandle();
117117
meta.getCollections().add("http://marklogic.com/entity-services/models");
118-
meta.setFormat(Format.JSON);
119118
for (Resource r : modules.getAssets()) {
120119
StringHandle handle = new StringHandle(IOUtils.toString(r.getInputStream()));
121120
entityDocMgr.write("/entities/" + r.getFilename(), meta, handle);

0 commit comments

Comments
 (0)