mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-13 02:42:45 +00:00
feat: use user id instead of username to refer to users
This commit is contained in:
@@ -15,7 +15,7 @@ const AnonymizedRepositorySchema = new Schema({
|
||||
lastView: Date,
|
||||
pageView: Number,
|
||||
accessToken: String,
|
||||
owner: String,
|
||||
owner: mongoose.Schema.Types.ObjectId,
|
||||
conference: String,
|
||||
source: {
|
||||
type: { type: String },
|
||||
|
||||
@@ -12,7 +12,7 @@ export async function connect() {
|
||||
mongoose.set("useFindAndModify", true);
|
||||
mongoose.set("useUnifiedTopology", true);
|
||||
|
||||
await mongoose.connect(MONGO_URL + "test", {
|
||||
await mongoose.connect(MONGO_URL + "production", {
|
||||
authSource: "admin",
|
||||
useCreateIndex: true,
|
||||
useFindAndModify: true,
|
||||
|
||||
Reference in New Issue
Block a user