mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-04-24 03:35:59 +08:00
fixbug
This commit is contained in:
@@ -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) ->
|
||||
|
||||
Reference in New Issue
Block a user