Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
Merge pull request getredash#1193 from ken880guchi/modify-ken880guchi…
Browse files Browse the repository at this point in the history
…-patch-1

Change: modify the argument order of moment.add function call
  • Loading branch information
arikfr authored Jul 20, 2016
2 parents 0e5119a + b201dd0 commit 8a7691b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rd_ui/app/scripts/controllers/admin_controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
$scope.setTab($location.hash() || 'in_progress');

var refresh = function () {
$scope.refresh_time = moment().add('minutes', 1);
$scope.refresh_time = moment().add(1, 'minutes');
$http.get('/api/admin/queries/tasks').success(function (data) {
$scope.tasks = data;
$scope.showingTasks = $scope.tasks[$scope.selectedTab];
Expand Down Expand Up @@ -190,7 +190,7 @@
];

var refresh = function () {
$scope.refresh_time = moment().add('minutes', 1);
$scope.refresh_time = moment().add(1, 'minutes');
$http.get('/api/admin/queries/outdated').success(function (data) {
$scope.queries = data.queries;
$scope.updatedAt = data.updated_at * 1000.0;
Expand Down

0 comments on commit 8a7691b

Please sign in to comment.