From bb77620d0d27ebbd9831bdd025256a41d2fda188 Mon Sep 17 00:00:00 2001 From: Akshay Dwivedi Date: Wed, 27 Nov 2019 00:03:34 +0800 Subject: [PATCH] fix(purchases): changed optional parameter oldSku (#3238) changed optional parameter oldSkus to comply with the updated plugin code --- src/@ionic-native/plugins/purchases/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/@ionic-native/plugins/purchases/index.ts b/src/@ionic-native/plugins/purchases/index.ts index 2c34c1249..396022814 100644 --- a/src/@ionic-native/plugins/purchases/index.ts +++ b/src/@ionic-native/plugins/purchases/index.ts @@ -268,7 +268,7 @@ export class Purchases extends IonicNativePlugin { /** * Make a purchase * @param productIdentifier {string} The product identifier of the product you want to purchase. - * @param oldSkus {string[]} Optional array of skus you wish to upgrade from. + * @param oldSku {string} Optional sku you wish to upgrade from. * @param type {String} Optional type of product, can be inapp or subs. Subs by default * * @return {Observable} An [RCError] is thrown when user cancels. On error `usercancelled` will be true if user cancelled @@ -280,7 +280,7 @@ export class Purchases extends IonicNativePlugin { }) makePurchase( productIdentifier: string, - oldSkus: string[] = [], + oldSku?: string = null, type: ProductType = ProductType.SUBS ): Observable { return;