Skip to content

Commit 67ce0c8

Browse files
author
nianiB9
committed
Update cursorDate to calculate date from 1 year ago
1 parent 93e2827 commit 67ce0c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/services/monitor_api/eg001_get_monitoring_dataset_service.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ def worker
1919
#ds-snippet-start:Monitor1Step3
2020
monitor_api = DocuSign_Monitor::DataSetApi.new(api_client)
2121
begin
22-
cursor_value = ''
22+
cursor_date = Date.today.prev_year
23+
cursor_value = cursor_date.strftime('%Y-%m-%dT00:00:00Z')
2324
limit = 2000
2425
function_results = []
2526
options = DocuSign_Monitor::GetStreamOptions.new

0 commit comments

Comments
 (0)