Sitelet https://github.com/muhammetfaik/koding/commit/88824c0aefe9f36d877f9e9df24322d160832a8a
Skip to content

Commit 88824c0

Browse files
author
Sonmez Kartal
committed
Fix model class database client ready event subscription
Signed-off-by: Sonmez Kartal <sonmez@koding.com>
1 parent e463cd2 commit 88824c0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎node_modules_koding/bongo/lib/model/index.coffee‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ module.exports = class Model extends Base
228228
return
229229
return
230230
, callback
231-
@on 'dbClientReady', ->
231+
Model.on 'dbClientReady', ->
232232
collection = constructor.getCollection()
233233
for own key, attrs of indexes
234234
figureIndex collection, key, attrs

0 commit comments

Comments
 (0)