diff --git a/services/git-bridge/src/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/SQLiteWLDatabase.java b/services/git-bridge/src/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/SQLiteWLDatabase.java index 5cec94d6a6..3f73cec3c2 100644 --- a/services/git-bridge/src/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/SQLiteWLDatabase.java +++ b/services/git-bridge/src/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/SQLiteWLDatabase.java @@ -1,6 +1,7 @@ package uk.ac.ic.wlgitbridge.writelatex.model.db.sql; import uk.ac.ic.wlgitbridge.writelatex.filestore.node.FileNode; +import uk.ac.ic.wlgitbridge.writelatex.filestore.store.FileIndexStore; import uk.ac.ic.wlgitbridge.writelatex.model.db.sql.query.GetFileNodesForProjectNameSQLQuery; import uk.ac.ic.wlgitbridge.writelatex.model.db.sql.query.GetProjectNamesSQLQuery; import uk.ac.ic.wlgitbridge.writelatex.model.db.sql.query.GetURLIndexTableForProjectNameSQLQuery; @@ -63,8 +64,8 @@ public class SQLiteWLDatabase { return query(new GetVersionIDsForProjectNameSQLQuery(projectName)); } - public List getFileNodesForProjectName(String projectName) throws SQLException { - return query(new GetFileNodesForProjectNameSQLQuery(projectName)); + public List getFileNodesForProjectName(String projectName, FileIndexStore fileIndexStore) throws SQLException { + return query(new GetFileNodesForProjectNameSQLQuery(projectName, fileIndexStore)); } public Map getURLIndexTableForProjectName(String projectName) throws SQLException { diff --git a/services/git-bridge/src/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/query/GetFileNodesForProjectNameSQLQuery.java b/services/git-bridge/src/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/query/GetFileNodesForProjectNameSQLQuery.java index 80a893caf8..3f189d8096 100644 --- a/services/git-bridge/src/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/query/GetFileNodesForProjectNameSQLQuery.java +++ b/services/git-bridge/src/uk/ac/ic/wlgitbridge/writelatex/model/db/sql/query/GetFileNodesForProjectNameSQLQuery.java @@ -4,6 +4,7 @@ import uk.ac.ic.wlgitbridge.util.Util; import uk.ac.ic.wlgitbridge.writelatex.filestore.node.AttachmentNode; import uk.ac.ic.wlgitbridge.writelatex.filestore.node.BlobNode; import uk.ac.ic.wlgitbridge.writelatex.filestore.node.FileNode; +import uk.ac.ic.wlgitbridge.writelatex.filestore.store.FileIndexStore; import uk.ac.ic.wlgitbridge.writelatex.model.db.sql.SQLQuery; import java.sql.PreparedStatement; @@ -21,9 +22,11 @@ public class GetFileNodesForProjectNameSQLQuery implements SQLQuery