Jofthomas HF staff commited on
Commit
a2bfbd5
·
1 Parent(s): 60c80d2

change to id

Browse files
Files changed (1) hide show
  1. convex/world.ts +1 -1
convex/world.ts CHANGED
@@ -193,7 +193,7 @@ export const leaveWorld = mutation({
193
  await insertInput(ctx, world._id, 'leave', {
194
  playerId: existingPlayer.id,
195
  });
196
- world.players.delete(oauthToken);
197
  },
198
  });
199
 
 
193
  await insertInput(ctx, world._id, 'leave', {
194
  playerId: existingPlayer.id,
195
  });
196
+ world.players.delete(existingPlayer.id);
197
  },
198
  });
199