mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-03-21 03:43:26 +00:00
perf: improve the perf of Anonymous GitHub
This commit is contained in:
11
src/User.ts
11
src/User.ts
@@ -119,9 +119,14 @@ export default class User {
|
||||
*/
|
||||
async getRepositories() {
|
||||
const repositories = (
|
||||
await AnonymizedRepositoryModel.find({
|
||||
owner: this.id,
|
||||
}).exec()
|
||||
await AnonymizedRepositoryModel.find(
|
||||
{
|
||||
owner: this.id,
|
||||
},
|
||||
{
|
||||
originalFiles: 0,
|
||||
}
|
||||
).exec()
|
||||
).map((d) => new Repository(d));
|
||||
const promises = [];
|
||||
for (let repo of repositories) {
|
||||
|
||||
Reference in New Issue
Block a user