Просмотр исходного кода

fixed algolia settings and removed some console.logs

Henry Oswald 12 лет назад
Родитель
Сommit
e1dd58aca8

+ 3 - 3
services/web/app/coffee/Features/Project/ProjectController.coffee

@@ -143,10 +143,10 @@ module.exports = ProjectController =
 						hasSubscription: !!results.subscription
 					}
 
-					if Settings?.algolia?.institutions?.app_id? and Settings?.algolia?.institutions?.api_key?
+					if Settings?.algolia?.app_id? and Settings?.algolia?.read_only_api_key?
 						viewModel.showUserDetailsArea = true
-						viewModel.algolia_api_key = Settings.algolia.institutions.api_key
-						viewModel.algolia_app_id = Settings.algolia.institutions.app_id
+						viewModel.algolia_api_key = Settings.algolia.api_key
+						viewModel.algolia_app_id = Settings.algolia.app_id
 					else
 						viewModel.showUserDetailsArea = false
 

+ 0 - 1
services/web/public/coffee/directives/fineUpload.coffee

@@ -2,7 +2,6 @@ define [
 	"base"
 ], (App) ->
 	App.directive 'fineUpload', ($timeout) ->
-		console.log "7777777777"
 		return {
 			scope: {
 				multiple: "="

+ 0 - 1
services/web/test/UnitTests/coffee/Uploads/ProjectUploadControllerTests.coffee

@@ -139,7 +139,6 @@ describe "ProjectUploadController", ->
 					.should.equal true
 
 			it "should return a successful response to the FileUploader client", ->
-				console.log @res.body
 				expect(@res.body).to.deep.equal
 					success: true
 					entity_id: @entity._id