Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
bump: deps
Browse files Browse the repository at this point in the history
  • Loading branch information
jwcub committed Apr 3, 2024
1 parent 6b5441e commit a99d311
Show file tree
Hide file tree
Showing 4 changed files with 586 additions and 550 deletions.
6 changes: 3 additions & 3 deletions app/core/server/room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ export class RoomManager {
checkTeamDeath(deadPlayer: string) {
const room = this.room;

if (!room || !room.ongoing) {
if (!room?.ongoing) {
return;
}

Expand All @@ -783,7 +783,7 @@ export class RoomManager {
async game() {
const room = this.room;

if (!room || !room.ongoing) {
if (!room?.ongoing) {
return;
}

Expand Down Expand Up @@ -869,7 +869,7 @@ export class RoomManager {
async endGame(winner: TeamId) {
const room = this.room;

if (!room || !room.ongoing) {
if (!room?.ongoing) {
return;
}

Expand Down
3 changes: 2 additions & 1 deletion app/env.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import { config } from "dotenv";
import invariant from "tiny-invariant";

config({
path: [".env.local", ".env"]
path: [".env", ".env.local"],
override: true
});

// Ensure that SESSION_SECRET is set.
Expand Down
2 changes: 1 addition & 1 deletion app/routes/_index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export async function loader({ request }: LoaderFunctionArgs) {

const announcements = await getAnnouncements();
const posts = await getPosts(1, getPrivate);
const recentComments = await getRecentComments(!!getPrivate);
const recentComments = await getRecentComments(getPrivate === true);

return json({ announcements, posts, recentComments });
}
Expand Down
Loading

0 comments on commit a99d311

Please sign in to comment.