Commits

Art Lowel authored e5053c85b01
fix lint issues
No tags

src/app/core/data/data.service.ts

Modified
358 358 *
359 359 * @param object The object to send a put request for.
360 360 */
361 361 put(object: T): Observable<RemoteData<T>> {
362 362 const requestId = this.requestService.generateRequestId();
363 363 const serializedObject = new DSpaceSerializer(object.constructor as GenericConstructor<{}>).serialize(object);
364 364 const request = new PutRequest(requestId, object._links.self.href, serializedObject);
365 365 this.requestService.configure(request);
366 366
367 367 return this.requestService.getByUUID(requestId).pipe(
368 - find((request: RequestEntry) => hasValue(request) && request.completed),
368 + find((re: RequestEntry) => hasValue(re) && re.completed),
369 369 switchMap(() => this.findByHref(object._links.self.href))
370 370 );
371 371 }
372 372
373 373 /**
374 374 * Add a new patch to the object cache
375 375 * The patch is derived from the differences between the given object and its version in the object cache
376 376 * @param {DSpaceObject} object The given object
377 377 */
378 378 update(object: T): Observable<RemoteData<T>> {

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut