aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/generate-code-contributors.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-11-05 08:56:27 +0100
committerChocobozzz <me@florianbigard.com>2019-11-05 08:56:27 +0100
commitebd316d142d1619ded87277c274ea39df2eb21c2 (patch)
treee0dc61830be278b22de94e160ff2cbbd719b2873 /scripts/generate-code-contributors.ts
parent71056d000864f0bc059626627772ddb61055f211 (diff)
downloadPeerTube-ebd316d142d1619ded87277c274ea39df2eb21c2.tar.gz
PeerTube-ebd316d142d1619ded87277c274ea39df2eb21c2.tar.zst
PeerTube-ebd316d142d1619ded87277c274ea39df2eb21c2.zip
Fix duplicated in CREDITS
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}