staggingweb #25

Merged
nicoarya20 merged 2 commits from staggingweb into nico/28-nov-25 2025-11-28 15:04:30 +08:00
2 changed files with 25 additions and 12 deletions
Showing only changes of commit 0018bdc251 - Show all commits

View File

@@ -60,6 +60,7 @@ export default async function userUpdate(context: Context) {
},
});
// ✅ HAPUS SEMUA SESI USER DI DATABASE
if (isRoleChanged) {
await prisma.userSession.deleteMany({ where: { userId: id } });