fix issue due to method signature change after merge

This commit is contained in:
Art Lowel
2020-07-09 17:24:00 +02:00
parent bd9a6c487f
commit 95163aa226

View File

@@ -16,9 +16,10 @@ import { NotificationsService } from '../../shared/notifications/notifications.s
import { HttpClient } from '@angular/common/http';
import { BrowseService } from '../browse/browse.service';
import { CollectionDataService } from './collection-data.service';
import { switchMap } from 'rxjs/operators';
import { switchMap, map } from 'rxjs/operators';
import { BundleDataService } from './bundle-data.service';
import { FollowLinkConfig } from '../../shared/utils/follow-link-config.model';
import { RestResponse } from '../cache/response.models';
/* tslint:disable:max-classes-per-file */
/**
@@ -121,7 +122,7 @@ class DataServiceImpl extends ItemDataService {
*/
deleteByCollectionID(item: Item, collectionID: string): Observable<boolean> {
this.setRegularEndpoint();
return super.delete(item.uuid);
return super.delete(item.uuid).pipe(map((response: RestResponse) => response.isSuccessful));
}
}