 			ensureSupervisorCompatibility(
 				device.supervisor_version,
 				MIN_SUPERVISOR_MC_API
-			).then ->
-				appId = device.belongs_to__application[0].id
-				return request.send
-					method: 'POST'
-					url: "/supervisor/v2/applications/#{appId}/start-service"
-					baseUrl: apiUrl
-					body:
-						deviceId: device.id
-						appId: appId
-						data: {
-							appId
-							imageId
-						}
-					timeout: CONTAINER_ACTION_ENDPOINT_TIMEOUT
+			)
+			appId = device.belongs_to__application[0].id
+			return request.send
+				method: 'POST'
+				url: "/supervisor/v2/applications/#{appId}/start-service"
+				baseUrl: apiUrl
+				body:
+					deviceId: device.id
+					appId: appId
+					data: {
+						appId
+						imageId
+					}
+				timeout: CONTAINER_ACTION_ENDPOINT_TIMEOUT
 		.asCallback(callback)
 
 	###*

	# @name ensureSupervisorCompatibility
	# @private
	# @function
	# @memberof balena.models.device
	#
	# @param {String} version - version under check
	# @param {String} minVersion - minimum accepted version
	# @fulfil {} - is compatible
	# @reject {Error} Will reject if the given version is < than the given minimum version
	# @returns {Promise}
	#
	# @example
	# balena.models.device.ensureSupervisorCompatibility(version, MIN_VERSION).then(function() {
	# 	console.log('Is compatible');
	# });
	#
	# @example
	# balena.models.device.ensureSupervisorCompatibility(version, MIN_VERSION, function(error) {
	# 	if (error) throw error;
	# 	console.log('Is compatible');
	# });
	###
	ensureSupervisorCompatibility = Promise.method (version, minVersion) ->
		if semver.lt(version, minVersion)
			throw new Error("Incompatible supervisor version: #{version} - must be >= #{minVersion}")


			ensureSupervisorCompatibility(
				device.supervisor_version,
				MIN_SUPERVISOR_MC_API
			)
			appId = device.belongs_to__application[0].id
			return request.send
				method: 'POST'
				url: "/supervisor/v2/applications/#{appId}/restart-service"
				baseUrl: apiUrl
				body:
					deviceId: device.id
					appId: appId
					data: {
						appId
						imageId
					}
				timeout: CONTAINER_ACTION_ENDPOINT_TIMEOUT
		.asCallback(callback)

	###*
