Skip to content

Commit

Permalink
#2025 Clear analyzers cache when switching organisation
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Jun 1, 2021
1 parent 4ad3c2c commit 6a3175e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/app/scripts/controllers/RootCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Controller for main page
*/
angular.module('theHiveControllers').controller('RootCtrl',
function ($scope, $rootScope, $timeout, $uibModal, $location, $state, AuthenticationSrv, UtilsSrv, StreamSrv, StreamQuerySrv, CaseSrv, CaseTemplateSrv, CustomFieldsSrv, NotificationSrv, AppLayoutSrv, VersionSrv, currentUser, appConfig) {
function ($scope, $rootScope, $timeout, $uibModal, $location, $state, AuthenticationSrv, AnalyzerSrv, StreamSrv, StreamQuerySrv, CaseSrv, CaseTemplateSrv, CustomFieldsSrv, NotificationSrv, AppLayoutSrv, VersionSrv, currentUser, appConfig) {
'use strict';

if (currentUser === 520) {
Expand Down Expand Up @@ -182,6 +182,8 @@ angular.module('theHiveControllers').controller('RootCtrl',
});
})
.then(function () {
AnalyzerSrv.clearCache()

$state.go('app.index', {}, { reload: true });
})
.catch(function (err) {
Expand Down

0 comments on commit 6a3175e

Please sign in to comment.