mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-10 03:23:07 +00:00
fix issue where submission requests would time out before they could be used once
This commit is contained in:
@@ -109,11 +109,10 @@ export class SubmissionRestService {
|
||||
filter((href: string) => isNotEmpty(href)),
|
||||
distinctUntilChanged(),
|
||||
map((endpointURL: string) => new SubmissionRequest(requestId, endpointURL)),
|
||||
map ((request: RestRequest) => {
|
||||
request.responseMsToLive = 0;
|
||||
return request;
|
||||
tap((request: RestRequest) => {
|
||||
this.requestService.removeByHrefSubstring(request.href);
|
||||
this.requestService.configure(request);
|
||||
}),
|
||||
tap((request: RestRequest) => this.requestService.configure(request)),
|
||||
flatMap(() => this.fetchRequest(requestId)),
|
||||
distinctUntilChanged());
|
||||
}
|
||||
|
Reference in New Issue
Block a user