Skip to content

Commit

Permalink
Removed unnecessary resetAll code
Browse files Browse the repository at this point in the history
This is no longer used in favor of websockets. For now, since this is still a good fallback.
  • Loading branch information
chrsrns committed Mar 8, 2024
1 parent 27248b4 commit 3d6843c
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,6 @@ const { PrismaClient } = require("@prisma/client");
const prisma = new PrismaClient();

require("dotenv").config();
const resetAll = async () => {
console.log("Resetting online status");
console.log(
await prisma.user.updateMany({
where: {
isOnline: true,
},
data: {
isOnline: false,
},
}),
);
};
resetAll();

app.use(express.json());
app.use(cors());
Expand Down

0 comments on commit 3d6843c

Please sign in to comment.