1
0
mirror of synced 2025-10-29 18:39:18 +00:00

multi user features

This commit is contained in:
Valentin
2023-09-14 19:34:16 +02:00
parent 05b4752183
commit 89951b45fe
7 changed files with 47 additions and 41 deletions

View File

@@ -38,8 +38,8 @@ async function syncUser(user) {
login: user.login,
avatar: user.avatar_url,
displayName: user.name,
admin: (users.length === 1),
serverUsername: false,
admin: (users.length === 0),
serverUsername: user.login,
}).then(() => {
console.log('user ' + user.login + ' added to database')