mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Chat foreign key fixes
This commit is contained in:
parent
417217bad6
commit
34025444c3
2 changed files with 1 additions and 30 deletions
|
@ -50,15 +50,6 @@ function setup(data: SubmoduleData): void {
|
|||
|
||||
socket.on('join', function (/*data*/) {
|
||||
socket.join(userid.toString())
|
||||
let currUser: any = dbtools.Select(userDB, 'users', {
|
||||
id: userid,
|
||||
})
|
||||
if (!currUser || currUser.length === 0) {
|
||||
// TODO: handle somehow?
|
||||
socket.disconnect()
|
||||
} else {
|
||||
currUser = currUser[0]
|
||||
}
|
||||
|
||||
const groups = dbtools
|
||||
.runStatement(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue