diff --git a/data/src/main/java/one/nem/lacerta/data/impl/DocumentImpl.java b/data/src/main/java/one/nem/lacerta/data/impl/DocumentImpl.java index 10eb8265..194fbe22 100644 --- a/data/src/main/java/one/nem/lacerta/data/impl/DocumentImpl.java +++ b/data/src/main/java/one/nem/lacerta/data/impl/DocumentImpl.java @@ -24,6 +24,7 @@ import one.nem.lacerta.utils.LacertaLogger; // Lacerta/vcs import one.nem.lacerta.vcs.LacertaVcs; +import one.nem.lacerta.vcs.factory.LacertaVcsFactory; public class DocumentImpl implements Document { @@ -36,8 +37,8 @@ public class DocumentImpl implements Document { @Inject LacertaDatabase database; -// @Inject -// LacertaVcs vcs; + @Inject + LacertaVcsFactory vcsFactory; @Inject @@ -69,7 +70,8 @@ public class DocumentImpl implements Document { database.documentDao().insert(documentEntity); // Vcs -// vcs.createDocument(meta.getId()); + LacertaVcs vcs = vcsFactory.create(meta.getId()); + vcs.createDocument(meta.getId()); return detail; }