You need to return result.promise() here.