diff --git a/README.md b/README.md
index 8c67077..e76be03 100755
--- a/README.md
+++ b/README.md
@@ -75,8 +75,8 @@ You can optionally also install the guest version of the player app on Heroku to
Once the installation is successful, Open the Developer Console and go to Debug -> Execute Anonymous Window.
Paste the following code, and click Execute
-String namespace = PlanningPokerCtrl.getNameSpace(true);
-PlanningPokerPostInstallScript.insertPushTopics(namespace);
+
+planningpokersf.PlanningPokerPostInstallScript.insertPushTopics();
To make a Salesforce user the host of a game, assign the Planning Poker Host
permission set to them.
Assign the Planning Poker Player
permission set to any users who want to participate as players.
diff --git a/force-app/main/default/classes/PlanningPokerPostInstallScript.cls b/force-app/main/default/classes/PlanningPokerPostInstallScript.cls
index 2351fb9..b1a9724 100644
--- a/force-app/main/default/classes/PlanningPokerPostInstallScript.cls
+++ b/force-app/main/default/classes/PlanningPokerPostInstallScript.cls
@@ -1,12 +1,13 @@
global class PlanningPokerPostInstallScript implements InstallHandler {
global void onInstall(InstallContext context) {
if (context.previousVersion() == null) {
- String namespace = PlanningPokerCtrl.getNameSpace(true);
- insertPushTopics(namespace);
+ insertPushTopics();
}
}
- public static void insertPushTopics(String namespace) {
+ global static void insertPushTopics() {
+ String namespace = PlanningPokerCtrl.getNameSpace(true);
+
List pushTopics = new List();
PushTopic pushTopic = new PushTopic();
diff --git a/scripts/apex/createPushTopics.apex b/scripts/apex/createPushTopics.apex
index d0a8959..189455b 100644
--- a/scripts/apex/createPushTopics.apex
+++ b/scripts/apex/createPushTopics.apex
@@ -1,2 +1 @@
-String namespace = PlanningPokerCtrl.getNameSpace(true);
-PlanningPokerPostInstallScript.insertPushTopics(namespace);
\ No newline at end of file
+PlanningPokerPostInstallScript.insertPushTopics();
\ No newline at end of file