mirror of
/repos/Prototyper.git
synced 2026-02-27 16:12:00 +01:00
app only recovers when sharejs has it's own backend.. need to write my own share model to do proper overrides
This commit is contained in:
@@ -10,6 +10,12 @@ var fs = require('fs');
|
||||
module.exports = function (app, db, config) {
|
||||
|
||||
// share wraps express app with http.Server
|
||||
if (config
|
||||
&& config.share
|
||||
&& config.share.db
|
||||
&& config.share.db.type == 'mongo') {
|
||||
config.share.db.client = db;
|
||||
}
|
||||
var server = ShareJS.server.attach(app, config.share);
|
||||
var model = app.model;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user