Display correctly the newly-created application id. Fix #117

This commit is contained in:
mike 2015-07-29 20:40:52 +03:00
parent 0bb0e6ea4b
commit 9564b4e478
2 changed files with 4 additions and 4 deletions

View File

@ -51,8 +51,8 @@
}, function(type, callback) {
options.type = type;
return resin.models.application.create(params.name, options.type).nodeify(callback);
}, function(applicationId, callback) {
console.info("Application created: " + params.name + " (" + options.type + ", id " + applicationId + ")");
}, function(application, callback) {
console.info("Application created: " + params.name + " (" + options.type + ", id " + application.id + ")");
return callback();
}
], done);

View File

@ -56,8 +56,8 @@ exports.create =
options.type = type
resin.models.application.create(params.name, options.type).nodeify(callback)
(applicationId, callback) ->
console.info("Application created: #{params.name} (#{options.type}, id #{applicationId})")
(application, callback) ->
console.info("Application created: #{params.name} (#{options.type}, id #{application.id})")
return callback()
], done