Skip to content

Commit

Permalink
FF-1722: Removed before from clear statistic
Browse files Browse the repository at this point in the history
  • Loading branch information
revenz committed Aug 13, 2024
1 parent 727ee3c commit 73e09b4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Scripts/Shared/FileFlowsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @name FileFlowsApi
* @uid 92aeca79-6dce-410f-bf26-87b56871be0e
* @descriptionClass that interacts with the FileFlows API
* @revision 11
* @revision 12
* @minimumVersion 24.4.1.3000
*/
export class FileFlowsApi
Expand Down Expand Up @@ -173,14 +173,11 @@ export class FileFlowsApi
/**
* Clears statistics for a specific statistic or all statistics
* @param {string} name the name of the statistic to clear, optional
* @param {Date} before an optional date to clear statistics before
*/
clearStatistic(name, before) {
clearStatistic(name) {
let url = this.getUrl('statistics/clear');
if(name)
url += '?name=' + encodeURI(name);
if(before)
url += (name ? '&' : '?') + 'before=' + encodeURI(before.toISOString());

let response = http.PostAsync(url, null).Result;
let responseBody = response.Content.ReadAsStringAsync().Result;
Expand Down

0 comments on commit 73e09b4

Please sign in to comment.