Skip to content

Commit df63ba1

Browse files
author
Alexander Mays
committed
Moved the requirement statement to the top of the file
Signed-off-by: Alexander Mays <maysale01@gmail.com>
1 parent a3805d7 commit df63ba1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DatabaseAdapter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// Default is ExportAdapter, which uses mongo.
1616

1717
var ExportAdapter = require('./ExportAdapter');
18-
18+
var CacheProvider = require('./classes/CacheProvider');
1919
var adapter = ExportAdapter;
2020
var dbConnections = {};
2121
var databaseURI = 'mongodb://localhost:27017/parse';
@@ -34,7 +34,7 @@ function setAppDatabaseURI(appId, uri) {
3434
}
3535

3636
function getDatabaseConnection(appId) {
37-
var cache = require('./classes/CacheProvider').getAdapter();
37+
var cache = CacheProvider.getAdapter();
3838
if (dbConnections[appId]) {
3939
return dbConnections[appId];
4040
}

0 commit comments

Comments
 (0)