Skip to content

Commit 00dc971

Browse files
committed
Fix custom DDP in .remove()
1 parent 11983cf commit 00dc971

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

files.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -2027,7 +2027,7 @@ class FilesCollection
20272027

20282028
if Meteor.isClient
20292029
if @allowClientCode
2030-
@config.ddp.call @_methodNames._Remove, selector, (callback or NOOP)
2030+
@ddp.call @_methodNames._Remove, selector, (callback or NOOP)
20312031
else
20322032
callback and callback new Meteor.Error 401, '[FilesCollection] [remove] Run code from client is not allowed!'
20332033
console.warn '[FilesCollection] [remove] Run code from client is not allowed!' if @debug

0 commit comments

Comments
 (0)