Skip to content

Commit

Permalink
Revert "Store previous lastSeen when setting seen (to make in-game ne…
Browse files Browse the repository at this point in the history
…w chat possible)"

This reverts commit 9329fb9.
  • Loading branch information
Perlkonig committed Oct 19, 2024
1 parent 9329fb9 commit 2b7656f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions api/abstractplay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ type Game = {
noExplore?: boolean;
toMove: string | boolean[];
note?: string;
prevSeen?: number;
seen?: number;
winner?: number[];
numMoves?: number;
Expand Down Expand Up @@ -7255,7 +7254,6 @@ async function setLastSeen(userId: string, pars: {gameId: string; interval?: num
const now = new Date();
const then = new Date();
then.setDate(now.getDate() - interval);
game.prevSeen = game.seen;
game.seen = then.getTime();
console.log(`Setting lastSeen for ${game.id} to ${then.getTime()} (${then.toUTCString()}). It is currently ${new Date().toUTCString()}`);
// you need to set `lastChat` as well or chats near the end of the game will be flagged
Expand Down

0 comments on commit 2b7656f

Please sign in to comment.