mirror of
https://github.com/aljazceru/landscape-template.git
synced 2026-02-23 15:34:21 +01:00
fix: remove old user-keys
This commit is contained in:
@@ -46,6 +46,11 @@ const loginHandler = async (req, res) => {
|
||||
}
|
||||
});
|
||||
|
||||
// Remove old linking for this key if existing
|
||||
await prisma.userKey.delete({
|
||||
where: { key }
|
||||
})
|
||||
|
||||
return res
|
||||
.status(200)
|
||||
.json({ status: "OK" })
|
||||
|
||||
Reference in New Issue
Block a user