Skip to content
Snippets Groups Projects
Verified Commit bc3f01eb authored by Damien's avatar Damien
Browse files

FEAT #13531 TIME 0:20 Clear all lock interval

parent 9051db1c
No related branches found
No related tags found
No related merge requests found
...@@ -396,6 +396,7 @@ CREATE TABLE entities ...@@ -396,6 +396,7 @@ CREATE TABLE entities
archival_agency character varying(255), archival_agency character varying(255),
archival_agreement character varying(255), archival_agreement character varying(255),
folder_import character varying(64), folder_import character varying(64),
external_id jsonb DEFAULT '{}',
CONSTRAINT entities_pkey PRIMARY KEY (entity_id), CONSTRAINT entities_pkey PRIMARY KEY (entity_id),
CONSTRAINT entities_folder_import_unique_key UNIQUE (folder_import) CONSTRAINT entities_folder_import_unique_key UNIQUE (folder_import)
) )
......
...@@ -514,6 +514,9 @@ export class ProcessComponent implements OnInit { ...@@ -514,6 +514,9 @@ export class ProcessComponent implements OnInit {
this.currentResourceLock = setInterval(() => { this.currentResourceLock = setInterval(() => {
this.http.put(`../../rest/resourcesList/users/${this.currentUserId}/groups/${this.currentGroupId}/baskets/${this.currentBasketId}/lock`, { resources: [this.currentResourceInformations.resId] }).pipe( this.http.put(`../../rest/resourcesList/users/${this.currentUserId}/groups/${this.currentGroupId}/baskets/${this.currentBasketId}/lock`, { resources: [this.currentResourceInformations.resId] }).pipe(
catchError((err: any) => { catchError((err: any) => {
if (err.status == 403) {
clearInterval(this.currentResourceLock);
}
this.notify.handleErrors(err); this.notify.handleErrors(err);
return of(false); return of(false);
}) })
......
...@@ -207,6 +207,9 @@ export class SignatureBookComponent implements OnInit { ...@@ -207,6 +207,9 @@ export class SignatureBookComponent implements OnInit {
this.currentResourceLock = setInterval(() => { this.currentResourceLock = setInterval(() => {
this.http.put(`../../rest/resourcesList/users/${this.userId}/groups/${this.groupId}/baskets/${this.basketId}/lock`, { resources: [this.resId] }).pipe( this.http.put(`../../rest/resourcesList/users/${this.userId}/groups/${this.groupId}/baskets/${this.basketId}/lock`, { resources: [this.resId] }).pipe(
catchError((err: any) => { catchError((err: any) => {
if (err.status == 403) {
clearInterval(this.currentResourceLock);
}
this.notify.handleErrors(err); this.notify.handleErrors(err);
return of(false); return of(false);
}) })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment