Fix Ganti Role, ganti role menunya sudah menyesuaikan
This commit is contained in:
@@ -60,6 +60,7 @@ export default async function userUpdate(context: Context) {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// ✅ HAPUS SEMUA SESI USER DI DATABASE
|
// ✅ HAPUS SEMUA SESI USER DI DATABASE
|
||||||
if (isRoleChanged) {
|
if (isRoleChanged) {
|
||||||
await prisma.userSession.deleteMany({ where: { userId: id } });
|
await prisma.userSession.deleteMany({ where: { userId: id } });
|
||||||
|
|||||||
Reference in New Issue
Block a user