X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/aafa91ce918b23cff556f73e337ad8fe76ed578a..f4d717705f9824add63e7d0730f486f58a93cf83:/src/services/common-service/trashable-resource-service.ts diff --git a/src/services/common-service/trashable-resource-service.ts b/src/services/common-service/trashable-resource-service.ts index 633b2fbd89..5746bffb83 100644 --- a/src/services/common-service/trashable-resource-service.ts +++ b/src/services/common-service/trashable-resource-service.ts @@ -17,7 +17,7 @@ export class TrashableResourceService extends Commo trash(uuid: string): Promise { return CommonResourceService.defaultResponse( this.serverApi - .post(this.resourceType + `${uuid}/trash`), + .post(this.resourceType + `/${uuid}/trash`), this.actions ); } @@ -28,7 +28,7 @@ export class TrashableResourceService extends Commo }; return CommonResourceService.defaultResponse( this.serverApi - .post(this.resourceType + `${uuid}/untrash`, { + .post(this.resourceType + `/${uuid}/untrash`, { params: CommonResourceService.mapKeys(_.snakeCase)(params) }), this.actions