fix: improve get tree in big repository by limiting the number of files

This commit is contained in:
tdurieux
2023-02-02 15:45:01 +01:00
parent 0e8a40c0d7
commit 864031d13a
5 changed files with 72 additions and 49 deletions

View File

@@ -25,6 +25,10 @@ const AnonymizedRepositorySchema = new Schema({
repositoryName: String,
accessToken: String,
},
truckedFileList: {
type: Boolean,
default: false,
},
originalFiles: Schema.Types.Mixed,
options: {
terms: [String],

View File

@@ -16,6 +16,7 @@ export interface IAnonymizedRepository {
accessToken?: string;
};
owner: string;
truckedFileList: boolean;
originalFiles: Tree;
conference: string;
options: {