Skip to content

Commit

Permalink
Update model.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lushijie committed Aug 24, 2017
1 parent 401aeec commit a07bcb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/model.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const mongoose = require('mongoose');
const Scoket = require('./socket.js');
const Socket = require('./socket.js');
const path = require('path');
const {extendClassMethods} = require('./util.js');

Expand All @@ -21,7 +21,7 @@ class Mongoose {

if (models[name]) return models[name];

const socket = Scoket.getInstance(this.config);
const socket = Socket.getInstance(this.config);
const connection = socket.createConnection();

let schema = this.schema;
Expand Down

0 comments on commit a07bcb5

Please sign in to comment.