Jofthomas HF staff commited on
Commit
74518b9
·
1 Parent(s): 0c7ebad

add log on leave

Browse files
Files changed (1) hide show
  1. 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