Skip to content

Commit b1e544b

Browse files
committed
remove api key
1 parent 28ac663 commit b1e544b

File tree

5 files changed

+13
-17
lines changed

5 files changed

+13
-17
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"main": "src/index.ts",
88
"dependencies": {
99
"@googleapis/sheets": "^7.0.0",
10-
"@rtsdk/topia": "^0.15.7",
10+
"@rtsdk/topia": "^0.15.8",
1111
"@types/cors": "^2.8.13",
1212
"axios": "^1.5.0",
1313
"body-parser": "^1.20.2",

src/controllers/handlePlayerSelection.ts

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,13 @@ export const handlePlayerSelection = async (req: Request, res: Response) => {
5252
});
5353
} else {
5454
text = "Find a second player!";
55-
world
56-
.triggerActivity({ type: WorldActivityType.GAME_WAITING, assetId: keyAssetId })
57-
58-
.catch((error) =>
59-
errorHandler({
60-
error,
61-
functionName: "handlePlayerSelection",
62-
message: "Error triggering world activity",
63-
}),
64-
);
55+
world.triggerActivity({ type: WorldActivityType.GAME_WAITING, assetId: keyAssetId }).catch((error) =>
56+
errorHandler({
57+
error,
58+
functionName: "handlePlayerSelection",
59+
message: "Error triggering world activity",
60+
}),
61+
);
6562
}
6663

6764
if (!shouldUpdateGame) {

src/controllers/handleResetBoard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export const handleResetBoard = async (req: Request, res: Response) => {
135135
y: keyAsset.position.y - 200,
136136
};
137137

138-
world.triggerParticle({ position, name: "blueSmoke_fog" }).catch((error) =>
138+
world.triggerParticle({ position, name: "blueSmoke_fog", duration: 2 }).catch((error) =>
139139
errorHandler({
140140
error,
141141
functionName: "handleResetBoard",

src/utils/topiaInit.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {
1313

1414
const config = {
1515
apiDomain: process.env.INSTANCE_DOMAIN || "api.topia.io",
16-
apiKey: process.env.API_KEY,
1716
apiProtocol: process.env.INSTANCE_PROTOCOL || "https",
1817
interactiveKey: process.env.INTERACTIVE_KEY,
1918
interactiveSecret: process.env.INTERACTIVE_SECRET,

0 commit comments

Comments
 (0)