multiple fixes

This commit is contained in:
tdurieux
2026-05-03 15:30:54 +02:00
parent 1968e3341a
commit a5f66d6844
31 changed files with 1513 additions and 464 deletions
@@ -30,9 +30,9 @@ const AnonymizedRepositorySchema = new Schema({
repositoryName: String,
accessToken: String,
},
truckedFileList: {
type: Boolean,
default: false,
truncatedFolders: {
type: [String],
default: [],
},
options: {
terms: [String],
@@ -17,7 +17,7 @@ export interface IAnonymizedRepository {
accessToken?: string;
};
owner: string;
truckedFileList: boolean;
truncatedFolders: string[];
conference: string;
options: {
terms: string[];
+8
View File
@@ -21,6 +21,14 @@ const UserSchema = new Schema({
},
],
isAdmin: { type: Boolean, default: false },
apiTokens: [
{
tokenHash: { type: String, index: true },
name: { type: String },
createdAt: { type: Date, default: Date.now },
lastUsedAt: { type: Date },
},
],
photo: String,
repositories: [
{
+7
View File
@@ -12,6 +12,13 @@ export interface IUser {
};
username: string;
isAdmin: boolean;
apiTokens?: {
_id?: string;
tokenHash: string;
name?: string;
createdAt?: Date;
lastUsedAt?: Date;
}[];
emails: {
email: string;
default: boolean;