From 9a5bc4772eafe7c616460a0fdc8b0aa268122b07 Mon Sep 17 00:00:00 2001 From: Jannik Schönartz Date: Tue, 13 Jul 2021 15:39:23 +0000 Subject: [server/registration] Adjust the new username contacts in the new parsing --- server/api/registration.js | 7 ++----- 1 file 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) } } -- cgit v1.2.3-55-g7522