mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-05-16 14:59:07 +02:00
multiple fixes
This commit is contained in:
@@ -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[];
|
||||
|
||||
@@ -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: [
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user