aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/generate-code-contributors.ts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/generate-code-contributors.ts')
-rwxr-xr-xscripts/generate-code-contributors.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/generate-code-contributors.ts b/scripts/generate-code-contributors.ts
index 8493d3d0c..8cc3dc5b4 100755
--- a/scripts/generate-code-contributors.ts
+++ b/scripts/generate-code-contributors.ts
@@ -1,8 +1,10 @@
1import { registerTSPaths } from '../server/helpers/register-ts-paths' 1import { registerTSPaths } from '../server/helpers/register-ts-paths'
2
2registerTSPaths() 3registerTSPaths()
3 4
4import { doRequest } from '../server/helpers/requests' 5import { doRequest } from '../server/helpers/requests'
5import { readFileSync } from 'fs-extra' 6import { readFileSync } from 'fs-extra'
7import { uniqBy } from 'lodash'
6 8
7run() 9run()
8 .then(() => process.exit(0)) 10 .then(() => process.exit(0))
@@ -89,5 +91,5 @@ async function fetchZanata (zanataUsername: string, zanataPassword: string) {
89 get(year2019, headers) 91 get(year2019, headers)
90 ]) 92 ])
91 93
92 return results2018.concat(results2019) 94 return uniqBy((results2018.concat(results2019)), 'username')
93} 95}