This commit is contained in:
jysperm
2014-04-04 00:54:33 +08:00
parent b322ccb0ab
commit b117a821ae

View File

@@ -52,6 +52,9 @@ module.exports = class Model
callback null
@findById: (id, callback) ->
if _.isString id
id = new ObjectID id
@findOne {_id: id}, callback
@insert: (data, options, callback = null) ->