summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJannik Schönartz2021-07-13 17:39:23 +0200
committerJannik Schönartz2021-07-13 17:39:23 +0200
commit9a5bc4772eafe7c616460a0fdc8b0aa268122b07 (patch)
treeb67ca83123308b5714d5cb6ed660b116effcc5aa
parent[server/idoit/registration] Change contact from name / lastname to username &... (diff)
downloadbas-9a5bc4772eafe7c616460a0fdc8b0aa268122b07.tar.gz
bas-9a5bc4772eafe7c616460a0fdc8b0aa268122b07.tar.xz
bas-9a5bc4772eafe7c616460a0fdc8b0aa268122b07.zip
[server/registration] Adjust the new username contacts in the new parsing
-rw-r--r--server/api/registration.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/server/api/registration.js b/server/api/registration.js
index 5d161b7..41d5fac 100644
--- a/server/api/registration.js
+++ b/server/api/registration.js
@@ -739,11 +739,8 @@ async function parseHardwareInformation (data) {
/* Contacts */
if (data.contacts && data.contacts.length > 0) {
- for (let contact of data.contacts) {
- client.contacts.push({
- 'firstname': contact.firstname,
- 'lastname': contact.lastname
- })
+ for (let username of data.contacts) {
+ client.contacts.push(username)
}
}