Spaces:
Sleeping
Sleeping
add log on leave
Browse files- convex/world.ts +4 -0
convex/world.ts
CHANGED
|
@@ -193,7 +193,11 @@ export const leaveWorld = mutation({
|
|
| 193 |
await insertInput(ctx, world._id, 'leave', {
|
| 194 |
playerId: existingPlayer.id,
|
| 195 |
});
|
|
|
|
|
|
|
|
|
|
| 196 |
world.players.delete(existingPlayer.id);
|
|
|
|
| 197 |
},
|
| 198 |
});
|
| 199 |
|
|
|
|
| 193 |
await insertInput(ctx, world._id, 'leave', {
|
| 194 |
playerId: existingPlayer.id,
|
| 195 |
});
|
| 196 |
+
console.log(existingPlayer)
|
| 197 |
+
|
| 198 |
+
console.log(existingPlayer.id)
|
| 199 |
world.players.delete(existingPlayer.id);
|
| 200 |
+
|
| 201 |
},
|
| 202 |
});
|
| 203 |
|