From 3d6843c4e44411f985fad4f02972338685f41199 Mon Sep 17 00:00:00 2001 From: Christian Aranas Date: Fri, 8 Mar 2024 21:27:05 +0800 Subject: [PATCH] Removed unnecessary resetAll code This is no longer used in favor of websockets. For now, since this is still a good fallback. --- index.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/index.js b/index.js index 94c5473..17530dc 100644 --- a/index.js +++ b/index.js @@ -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());