Skip to content

Commit

Permalink
Fix minor bug with S3filetype hook call and reformat mount hook call
Browse files Browse the repository at this point in the history
  • Loading branch information
creynders committed Apr 27, 2015
1 parent 388570a commit 3dcf000
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fields/types/s3file/S3FileType.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ s3file.prototype.uploadFile = function(item, file, update, callback) {
});
};

this.callHook('pre:upload', [item, file, next], function(err) {
this.callHook('pre:upload', [item, file], function(err) {
if (err) return callback(err);
doUpload();
});
Expand Down
2 changes: 1 addition & 1 deletion lib/core/mount.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ function mount(mountPath, parentApp, events) {

app.use(function(req, res, next){
debug('adding pre-route middlewares');
keystone.callHook('pre:routes', [req,res], next);
keystone.callHook('pre:routes', [req, res], next);
});

// unless the headless option is set (which disables the Admin UI),
Expand Down

0 comments on commit 3dcf000

Please sign in to comment.