Skip to content

Commit

Permalink
update deprecation warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
benstoltz committed Jun 29, 2021
1 parent 2e5c93f commit 6bc46cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/teams/src/utils/get-teams-available-in-product.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ export function getTeamsAvailableInProduct(
portalApiVersion: string // DEPRECATED
) {
/* tslint:disable no-console */
console.warn("portalApiVersion is deprecated and will be removed at v9.0.0");
console.warn(
"Hub.js::getTeamsAvailableInProduct Deprecation warning portalApiVersion will be removed at v9.0.0"
);
/* tslint:enable no-console */
const teams = WELLKNOWNTEAMS;
const filterFn = (tmpl: IGroupTemplate) => {
Expand Down
4 changes: 3 additions & 1 deletion packages/teams/src/utils/get-user-creatable-teams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export function getUserCreatableTeams(
subscriptionInfoType: string = ""
): IGroupTemplate[] {
/* tslint:disable no-console */
console.warn("portalApiVersion is deprecated and will be removed at v9.0.0");
console.warn(
"Hub.js::getUserCreatableTeams Deprecation warning portalApiVersion will be removed at v9.0.0"
);
/* tslint:enable no-console */
const teams = WELLKNOWNTEAMS;
// Online is not properly respecting addExternalMembersToGroup for
Expand Down

0 comments on commit 6bc46cd

Please sign in to comment.