From 0753bd1fe9a98f8a45a1cbe1342d673631fc530f Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Fri, 9 Jan 2015 13:16:10 -0300 Subject: [PATCH] Don't compute device type slug as the logic is implicit on the SDK --- lib/actions/app.coffee | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/actions/app.coffee b/lib/actions/app.coffee index 8ef8a07f..1ac42da5 100644 --- a/lib/actions/app.coffee +++ b/lib/actions/app.coffee @@ -19,12 +19,7 @@ exports.create = permissions.user (params, options) -> ui.widgets.select('Select a type', deviceTypes, callback) (type, callback) -> - - # TODO: Currently returns 'unknown' if device is not recognised. - # Maybe we should break or handle better? - slugifiedType = resin.models.device.getDeviceSlug(type) - - resin.models.application.create(params.name, slugifiedType, callback) + resin.models.application.create(params.name, type, callback) ], errors.handle