File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -35,5 +35,5 @@ export interface ICollectionsRepository {
3535 collectionIdOrAlias : number | string ,
3636 featuredItemDTOs : CollectionFeaturedItemsDTO
3737 ) : Promise < CollectionFeaturedItem [ ] >
38- // deleteCollectionFeaturedItems(collectionIdOrAlias: number | string): Promise<void>
38+ deleteCollectionFeaturedItems ( collectionIdOrAlias : number | string ) : Promise < void >
3939}
Original file line number Diff line number Diff line change @@ -302,11 +302,11 @@ export class CollectionsRepository extends ApiRepository implements ICollections
302302 return formData
303303 }
304304
305- // public async deleteCollectionFeaturedItems(collectionIdOrAlias: number | string): Promise<void> {
306- // return this.doDelete(`/${this.collectionsResourceName}/${collectionIdOrAlias}/featuredItems`)
307- // .then(() => undefined)
308- // .catch((error) => {
309- // throw error
310- // })
311- // }
305+ public async deleteCollectionFeaturedItems ( collectionIdOrAlias : number | string ) : Promise < void > {
306+ return this . doDelete ( `/${ this . collectionsResourceName } /${ collectionIdOrAlias } /featuredItems` )
307+ . then ( ( ) => undefined )
308+ . catch ( ( error ) => {
309+ throw error
310+ } )
311+ }
312312}
You can’t perform that action at this time.
0 commit comments