Improve property name

This commit is contained in:
2019-09-18 08:44:13 +02:00
parent aba4a23104
commit 66a37a1e74

View File

@@ -28,7 +28,7 @@ class Contributor {
github_username,
gitea_username,
wiki_username,
zoom_name,
zoom_display_name,
} = this;
let data = {
@@ -68,10 +68,10 @@ class Contributor {
});
}
if (zoom_name) {
if (zoom_display_name) {
data.accounts.push({
'site': 'zoom.us',
'username': zoom_name,
'username': zoom_display_name,
});
}
@@ -104,7 +104,7 @@ class Contributor {
accounts,
} = JSON.parse(serialized.toString('utf8'));
let github_username, github_uid, gitea_username, wiki_username, zoom_name;
let github_username, github_uid, gitea_username, wiki_username, zoom_display_name;
let github = accounts.find(a => a.site === 'github.com');
let gitea = accounts.find(a => a.site === 'gitea.kosmos.org');
let wiki = accounts.find(a => a.site === 'wiki.kosmos.org');
@@ -120,7 +120,7 @@ class Contributor {
(({ username: wiki_username } = wiki));
}
if (zoom) {
(({ username: zoom_name } = zoom));
(({ username: zoom_display_name } = zoom));
}
return {
@@ -132,7 +132,7 @@ class Contributor {
github_username,
gitea_username,
wiki_username,
zoom_name,
zoom_display_name,
ipfsData: serialized,
};
}