Skip to content

Commit 9342402

Browse files
committed
add fromtimestamp http
1 parent a56d4c3 commit 9342402

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/services/providers/HttpProvider.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ export class HttpProvider {
7070
const serviceEndpoints = await this.getServiceEndpoints(nodeUri, providerEndpoints)
7171
const endpoint = this.getEndpointURL(serviceEndpoints, 'jobs')
7272
if (!endpoint?.urlPath) return []
73-
const url = jobId ? endpoint.urlPath.replace(':job', jobId) : endpoint.urlPath
73+
let url = jobId ? endpoint.urlPath.replace(':job', jobId) : endpoint.urlPath
74+
if (fromTimestamp) url += `?fromTimestamp=${fromTimestamp}`
7475
try {
7576
const response = await fetch(url, {
7677
method: 'GET',

0 commit comments

Comments
 (0)