mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-09-12 21:58:57 +02:00
fix: evaluate document creation timestamps per instance
This commit is contained in:
@@ -37,7 +37,7 @@ const AnonymizedGistSchema = new Schema({
|
||||
},
|
||||
dateOfEntry: {
|
||||
type: Date,
|
||||
default: new Date(),
|
||||
default: Date.now,
|
||||
},
|
||||
gist: {
|
||||
description: String,
|
||||
|
||||
@@ -38,7 +38,7 @@ const AnonymizedPullRequestSchema = new Schema({
|
||||
},
|
||||
dateOfEntry: {
|
||||
type: Date,
|
||||
default: new Date(),
|
||||
default: Date.now,
|
||||
},
|
||||
pullRequest: {
|
||||
diff: String,
|
||||
|
||||
@@ -59,7 +59,7 @@ const AnonymizedRepositorySchema = new Schema({
|
||||
},
|
||||
dateOfEntry: {
|
||||
type: Date,
|
||||
default: new Date(),
|
||||
default: Date.now,
|
||||
},
|
||||
size: {
|
||||
storage: {
|
||||
|
||||
@@ -32,7 +32,7 @@ const RepositorySchema = new Schema({
|
||||
},
|
||||
dateOfEntry: {
|
||||
type: Date,
|
||||
default: new Date(),
|
||||
default: Date.now,
|
||||
},
|
||||
plan: {
|
||||
planID: String,
|
||||
|
||||
@@ -34,7 +34,7 @@ const RepositorySchema = new Schema({
|
||||
},
|
||||
dateOfEntry: {
|
||||
type: Date,
|
||||
default: new Date(),
|
||||
default: Date.now,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ const UserSchema = new Schema({
|
||||
},
|
||||
dateOfEntry: {
|
||||
type: Date,
|
||||
default: new Date(),
|
||||
default: Date.now,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user